.class public Lcom/nemustech/regina/widgets/clock/ClockWidget;
.super Lcom/nemustech/regina/ElementReginaWidget;
.source "ClockWidget.java"


# static fields
.field static final BACKITEM_AREA_FADE_TIME:I = 0xc8

.field static final BACKITEM_FOLDED:I = 0x1

.field static final BACKITEM_UNFOLDED:I = 0x2

.field private static final CELCIUS:I = 0x1

.field public static final CELCIUS_STRING:Ljava/lang/String; = "Celsius"

.field static final DEBUG_CLOCK_SNAPSHOT:Z = false

.field static final DEBUG_EFFECT:Z = false

.field static final EFFECT_BACKITEM_FADE_IN:I = 0xa

.field static final EFFECT_BACKITEM_FADE_OUT:I = 0x9

.field static final EFFECT_BACKITEM_FOLD:I = 0x7

.field static final EFFECT_BACKITEM_UNFOLD:I = 0x8

.field static final EFFECT_FORECAST_FADE_IN:I = 0x3

.field static final EFFECT_FORECAST_FADE_OUT:I = 0x4

.field static final EFFECT_FORECAST_FOLD:I = 0x1

.field static final EFFECT_FORECAST_UNFOLD:I = 0x2

.field static final EFFECT_NONE:I = 0x0

.field static final EFFECT_WEATHER_FADE_IN:I = 0x5

.field static final EFFECT_WEATHER_FADE_OUT:I = 0x6

.field private static final FAHRENHEIT:I = 0x0

.field public static final FAHRENHEIT_STRING:Ljava/lang/String; = "Fahrenheit"

.field static final FORECAST_AREA_FADE_TIME:I = 0x1f4

.field static final FORECAST_AREA_MORPH_TIME:I = 0xc8

.field static final FORECAST_FOLDED:I = 0x1

.field static final FORECAST_UNFOLDED:I = 0x2

.field private static final IMAGE_RESOURCE:[I = null

#the value of this static final field might be set in the static constructor
.field static final ITEM_COUNT:I = 0x0

.field private static final LOG_FLAG:Z = false

.field public static final MIN:I = 0xea60

.field private static final NEW_REGINA_VERSION:I = 0x2bc

.field private static final NEW_WEATHER_SERVER_VERSION:I = 0x1fc

.field static final SPLIT_SYMBOL:Ljava/lang/String; = ":"

.field public static final TWELVE_HOUR_MODE:Z = false

.field public static final TWELVE_HOUR_MODE_STRING:Ljava/lang/String; = "Modo 12h"

.field public static final TWENTY_FOUR_HOUR_MODE:Z = true

.field public static final TWENTY_FOUR_HOUR_MODE_STRING:Ljava/lang/String; = "Modo 24h"

.field static final UPDATE_PERIOD_SPARE:J = 0x927c0L

.field public static final UPDATE_PERIOD_VALUES:[J = null

.field public static final UPDATE_PREIOD_STRINGS:[Ljava/lang/String; = null

.field static final WHEATHER_AREA_FADE_TIME:I = 0x3e8


# instance fields
.field private TAG:Ljava/lang/String;

.field private Timer_Tick:Ljava/lang/Runnable;

.field mActorRefreshWeather:Ljava/lang/Runnable;

.field mActorRunClockApp:Ljava/lang/Runnable;

.field mActorRunWeatherApp:Ljava/lang/Runnable;

.field mActorShowAppSelDialog:Ljava/lang/Runnable;

.field mActorShowHourModeSelDialog:Ljava/lang/Runnable;

.field mActorShowTempUnitSelDialog:Ljava/lang/Runnable;

.field mActorShowUpdatePeriod:Ljava/lang/Runnable;

.field mActorTwistToBack:Ljava/lang/Runnable;

.field mActorTwistToFront:Ljava/lang/Runnable;

.field private mAmPm:I

.field private mAmPmChanged:Z

.field private mBackCenterGadgetList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/nemustech/regina/ElementReginaWidget$Gadget;",
            ">;"
        }
    .end annotation
.end field

.field mBackCenterItemPanelEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mBackHighLightJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mBackItemDisplayState:I

.field private mBackItemJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mBackPanelHeightInPixels:I

.field private mBackPanelWidthInPixels:I

.field private mBackTitleGadgetList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/nemustech/regina/ElementReginaWidget$Gadget;",
            ">;"
        }
    .end annotation
.end field

.field private mBackTitleJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mBackTitlePanelHeightInPixels:I

.field private mBottomBackPanelHeightInPixels:I

.field private mBottomBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

.field private mBottomBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mCityCode:Ljava/lang/String;

.field private mCityName:Ljava/lang/String;

.field mCitySelect:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

.field private mClockCorrection:Lcom/nemustech/tiffany/world/TFHolder$OnUpdateHolderListener;

.field private mContext:Landroid/content/Context;

.field private mCounter:I

.field private mCurrentWeather:I

.field private mDate:Ljava/util/Date;

.field private mDateStr:Ljava/lang/String;

.field mDigitAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

.field private mDigitBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

.field private mDigitHolModelSelectListner:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;

.field private mDigitHolderHandleDownListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;

.field private mDigitHolderHandleUpListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleUpListener;

.field private mDigitsHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

.field private mForecastDisplayState:I

.field private mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

.field mForecastHolderOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mFrontGadgetList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/nemustech/regina/ElementReginaWidget$Gadget;",
            ">;"
        }
    .end annotation
.end field

.field private mFrontHighLightJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mFrontItemPanelHeightInPixels:I

.field private mFrontItemPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mFrontItemPanelWidthInPixels:I

.field private mGmt:Ljava/lang/String;

.field private mHandler:Landroid/os/Handler;

.field private mHour:I

.field private mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

.field private mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

.field mImageProvider:Lcom/nemustech/tiffany/world/TFHolder$ImageProvider;

.field private mIntentFilter:Landroid/content/IntentFilter;

.field private final mIntentReceiver:Landroid/content/BroadcastReceiver;

.field private mIsReceiverRegisterd:Z

.field private mIsRefreshing:Z

.field private mIsRequestFailByNetwork:Z

.field private mIsShowWeather:Z

.field private mLastUpdateTime:J

.field private mMiddleBackPanelFoldedHeightInPixels:I

.field private mMiddleBackPanelUnfoldedHeightInPixels:I

.field private mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mMiddleBackgroundPanelFoldedHeight:F

.field mMiddleBackgroundPanelOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mMiddleBackgroundPanelUnfoldedHeight:F

.field private mMiddlePanelEffectType:I

.field private mMiddlePanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mMinute:I

.field private mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

.field private mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

.field private mModifiedTime:J

.field private mModifiedTimeFlag:Z

.field private mMorphingBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

.field private mNextWeather:I

.field mOnSelect:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

.field private mRefreshPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mResources:Landroid/content/res/Resources;

.field private mSelectedGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;

.field private mShowForecast:Z

.field private mSideEndMarginInPixels:I

.field private mTempUnit:I

.field private mTextPanelXOffsetInPixels:I

.field private mTextString:Ljava/lang/String;

.field mTimer:Ljava/util/Timer;

.field private mTopBackPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field private mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mTopBackgroundPanelHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

.field private mTopBackgroundPanelTopMargin:I

.field private mTopbackPanelOnTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

.field private mTwentyFourHourMode:Z

.field private mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

.field private mWeatherEffectType:I

.field private mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

.field private mWeatherPanelHeightInPixels:I

.field private mWeatherPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

.field mWeatherPanelOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

.field private mWeatherPanelWidthInPixels:I

.field private mWidgetYPosBeforeMorph:F

.field mWorld:Lcom/nemustech/tiffany/world/TFWorld;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    const/4 v1, 0x5

    .line 98
    new-array v0, v1, [J

    fill-array-data v0, :array_0

    sput-object v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PERIOD_VALUES:[J

    .line 102
    new-array v0, v1, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "30 Min"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "1 hora"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "2 horas"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "4 horas"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "Nunca"

    aput-object v2, v0, v1

    sput-object v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PREIOD_STRINGS:[Ljava/lang/String;

    .line 1877
    const/16 v0, 0xa

    new-array v0, v0, [I

    fill-array-data v0, :array_1

    sput-object v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->IMAGE_RESOURCE:[I

    .line 1890
    sget-object v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->IMAGE_RESOURCE:[I

    array-length v0, v0

    sput v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->ITEM_COUNT:I

    return-void

    .line 98
    :array_0
    .array-data 0x8
        0x40t 0x77t 0x1bt 0x0t 0x0t 0x0t 0x0t 0x0t
        0x80t 0xeet 0x36t 0x0t 0x0t 0x0t 0x0t 0x0t
        0x0t 0xddt 0x6dt 0x0t 0x0t 0x0t 0x0t 0x0t
        0x0t 0xbat 0xdbt 0x0t 0x0t 0x0t 0x0t 0x0t
        0x0t 0x0t 0x0t 0x0t 0x0t 0x0t 0x0t 0x0t
    .end array-data

    .line 1877
    :array_1
    .array-data 0x4
        0x29t 0x0t 0x2t 0x7ft
        0x2at 0x0t 0x2t 0x7ft
        0x2bt 0x0t 0x2t 0x7ft
        0x2ct 0x0t 0x2t 0x7ft
        0x2dt 0x0t 0x2t 0x7ft
        0x2et 0x0t 0x2t 0x7ft
        0x2ft 0x0t 0x2t 0x7ft
        0x30t 0x0t 0x2t 0x7ft
        0x31t 0x0t 0x2t 0x7ft
        0x32t 0x0t 0x2t 0x7ft
    .end array-data
.end method

.method public constructor <init>(Landroid/content/Context;JI)V
    .locals 7
    .parameter "context"
    .parameter "elementId"
    .parameter "forecastDisplayState"

    .prologue
    const-wide/16 v2, -0x1

    const/4 v6, 0x1

    const v5, 0x7f020026

    const/4 v4, 0x0

    .line 217
    invoke-direct {p0, p1, v4}, Lcom/nemustech/regina/ElementReginaWidget;-><init>(Landroid/content/Context;Z)V

    .line 60
    const-string v1, "ClockWidget"

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->TAG:Ljava/lang/String;

    .line 120
    iput-wide v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mLastUpdateTime:J

    .line 151
    const/4 v1, -0x1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCurrentWeather:I

    .line 153
    iput v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    .line 155
    iput-boolean v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mShowForecast:Z

    .line 210
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleGadgetList:Ljava/util/List;

    .line 211
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterGadgetList:Ljava/util/List;

    .line 212
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontGadgetList:Ljava/util/List;

    .line 375
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$1;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$1;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->Timer_Tick:Ljava/lang/Runnable;

    .line 459
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$2;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$2;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 466
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$3;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$3;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontHighLightJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 476
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$4;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$4;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackHighLightJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 486
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$5;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$5;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 702
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$8;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$8;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowUpdatePeriod:Ljava/lang/Runnable;

    .line 716
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$9;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$9;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowTempUnitSelDialog:Ljava/lang/Runnable;

    .line 723
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$10;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$10;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowAppSelDialog:Ljava/lang/Runnable;

    .line 730
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$11;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$11;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowHourModeSelDialog:Ljava/lang/Runnable;

    .line 737
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$12;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$12;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorTwistToBack:Ljava/lang/Runnable;

    .line 744
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$13;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$13;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorTwistToFront:Ljava/lang/Runnable;

    .line 752
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$14;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$14;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorRefreshWeather:Ljava/lang/Runnable;

    .line 774
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$15;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$15;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorRunWeatherApp:Ljava/lang/Runnable;

    .line 781
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$16;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$16;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorRunClockApp:Ljava/lang/Runnable;

    .line 813
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$17;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$17;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 820
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$18;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopbackPanelOnTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    .line 1060
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$19;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$19;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolModelSelectListner:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;

    .line 1067
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$20;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$20;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolderHandleUpListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleUpListener;

    .line 1076
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$21;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$21;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolderHandleDownListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;

    .line 1085
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$22;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$22;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mClockCorrection:Lcom/nemustech/tiffany/world/TFHolder$OnUpdateHolderListener;

    .line 1101
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$23;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$23;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 1697
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$25;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$25;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 1704
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$26;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$26;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    .line 1892
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$29;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$29;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mImageProvider:Lcom/nemustech/tiffany/world/TFHolder$ImageProvider;

    .line 1967
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$30;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$30;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCitySelect:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

    .line 1980
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$31;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$31;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mOnSelect:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

    .line 2026
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$32;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$32;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    .line 2053
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$33;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$33;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 2080
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$34;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$34;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 2144
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$35;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$35;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanelEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 2180
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$36;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$36;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolderOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    .line 2521
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$38;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentReceiver:Landroid/content/BroadcastReceiver;

    .line 219
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .line 221
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->increaseClockWidgetCount()V

    .line 223
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    .line 224
    cmp-long v1, p2, v2

    if-eqz v1, :cond_0

    .line 225
    invoke-virtual {p0, p2, p3}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->setElementId(J)V

    .line 239
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaPreference;->getClockWidgetCityName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    .line 240
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaPreference;->getClockWidgetCityCode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    .line 241
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaPreference;->getClockWidgetGmt(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    .line 242
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaPreference;->getClockWidgetTempUnit(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    .line 243
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaPreference;->getClockWidgetHourMode(Ljava/lang/String;)Z

    move-result v1

    iput-boolean v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTwentyFourHourMode:Z

    .line 246
    const/16 v1, 0x19

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mSideEndMarginInPixels:I

    .line 247
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    .line 248
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    .line 250
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    invoke-virtual {v1, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelWidthInPixels:I

    .line 251
    const/16 v1, 0x50

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelHeightInPixels:I

    .line 253
    const/16 v1, 0x16

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    .line 256
    const/16 v1, 0xf

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    .line 257
    const/4 v1, 0x3

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    .line 258
    const/16 v1, 0x69

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelUnfoldedHeightInPixels:I

    .line 260
    const/16 v1, 0x84

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelWidthInPixels:I

    .line 261
    const/16 v1, 0x7b

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelHeightInPixels:I

    .line 263
    const/16 v1, 0x48

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitlePanelHeightInPixels:I

    .line 266
    const-string v1, "Clock & Weather Widget"

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidgetCaption:Ljava/lang/String;

    .line 267
    new-instance v1, Ljava/util/Date;

    invoke-direct {v1}, Ljava/util/Date;-><init>()V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDate:Ljava/util/Date;

    .line 269
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCurrentTime()V

    .line 270
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCurrentDate()V

    .line 274
    new-instance v1, Landroid/content/IntentFilter;

    invoke-direct {v1}, Landroid/content/IntentFilter;-><init>()V

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentFilter:Landroid/content/IntentFilter;

    .line 275
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "android.intent.action.TIME_TICK"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 276
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "android.net.conn.CONNECTIVITY_CHANGE"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 277
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "com.nemustech.regina.weatherserver.WEATHERDATA_CHANGED"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 278
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "com.nemustech.regina.weatherserver.WEATHERDATA_ERROR"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 279
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "com.nemustech.regina.apps.weather.CITY_CHANGED"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 280
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentFilter:Landroid/content/IntentFilter;

    const-string v2, "com.nemustech.regina.weatherserver.WEATHERDATA_EXIST"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 285
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    invoke-static {v1, v2}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->getWeatherData(Landroid/content/Context;Ljava/lang/String;)Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    .line 291
    :cond_1
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->setWidth2D(I)V

    .line 294
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v1, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    .line 298
    new-instance v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v0, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>(Z)V

    .line 299
    .local v0, widget:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const-string v1, "Clock Widget"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 301
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createDigitsHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitsHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 302
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createTopBackgroundPanelHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 304
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createDigitBackgroundHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 306
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createMorphingBackgroundPanelHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMorphingBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 307
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createBottomBackgroundPanelHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 309
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createForecastHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    .line 310
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 311
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setOpacity(F)V

    .line 313
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolderOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 314
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 315
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelOnEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 320
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 321
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitsHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 322
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 323
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMorphingBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 324
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 325
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 326
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/16 v3, -0x73

    invoke-virtual {p0, v3}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    invoke-virtual {v1, v6, v2, v6}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 328
    invoke-direct {p0, v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createBackHolder(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 330
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateHeight2D()V

    .line 332
    iput-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    .line 335
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateClock()V

    .line 350
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->registerReceiver()V

    .line 353
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    if-eqz v1, :cond_2

    .line 354
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    invoke-static {v1, v2}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->sendRequest(Landroid/content/Context;Ljava/lang/String;)V

    .line 357
    :cond_2
    const/4 v1, 0x2

    if-ne p4, v1, :cond_3

    iget-boolean v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsRequestFailByNetwork:Z

    if-nez v1, :cond_3

    .line 358
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->forceExtend()V

    .line 362
    :cond_3
    return-void
.end method

.method static synthetic access$000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateClock()V

    return-void
.end method

.method static synthetic access$100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-boolean v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mAmPmChanged:Z

    return v0
.end method

.method static synthetic access$1000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTextString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1002(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTextString:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$102(Lcom/nemustech/regina/widgets/clock/ClockWidget;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-boolean p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mAmPmChanged:Z

    return p1
.end method

.method static synthetic access$1100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$1200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->startWeatherApp()V

    return-void
.end method

.method static synthetic access$1300(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createTopBackgroundPanelBitmap(I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$1400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mSelectedGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    return-object v0
.end method

.method static synthetic access$1402(Lcom/nemustech/regina/widgets/clock/ClockWidget;Lcom/nemustech/regina/ElementReginaWidget$Gadget;)Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mSelectedGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    return-object p1
.end method

.method static synthetic access$1500(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$1600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$1700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontGadgetList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$1800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$1900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateTextPanel()V

    return-void
.end method

.method static synthetic access$2000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleGadgetList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$2100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$2200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/util/List;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterGadgetList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$2300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$2400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->startClockApp()V

    return-void
.end method

.method static synthetic access$2500(Lcom/nemustech/regina/widgets/clock/ClockWidget;)J
    .locals 2
    .parameter "x0"

    .prologue
    .line 59
    iget-wide v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mModifiedTime:J

    return-wide v0
.end method

.method static synthetic access$2502(Lcom/nemustech/regina/widgets/clock/ClockWidget;J)J
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-wide p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mModifiedTime:J

    return-wide p1
.end method

.method static synthetic access$2600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleUpListener;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolderHandleUpListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleUpListener;

    return-object v0
.end method

.method static synthetic access$2700(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createFrontItemPanelBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$2800(Lcom/nemustech/regina/widgets/clock/ClockWidget;F)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->morphShift(F)V

    return-void
.end method

.method static synthetic access$2900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCurrentWeather:I

    return v0
.end method

.method static synthetic access$2902(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCurrentWeather:I

    return p1
.end method

.method static synthetic access$300(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createBackTitleBitmap(I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$3000(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createWeatherPanelBitmap(I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$3100(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createMiddlePanelBitmap(I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$3200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    return-object v0
.end method

.method static synthetic access$3300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    return-object v0
.end method

.method static synthetic access$3400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastDisplayState:I

    return v0
.end method

.method static synthetic access$3402(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastDisplayState:I

    return p1
.end method

.method static synthetic access$3500(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->extendInBack()V

    return-void
.end method

.method static synthetic access$3600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$3700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$3800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    return-object v0
.end method

.method static synthetic access$3900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    return-object v0
.end method

.method static synthetic access$400(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createBackItemBitmap(I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$4000()[I
    .locals 1

    .prologue
    .line 59
    sget-object v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->IMAGE_RESOURCE:[I

    return-object v0
.end method

.method static synthetic access$4100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->TAG:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$4200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$4300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/widgets/clock/WeatherData;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    return-object v0
.end method

.method static synthetic access$4400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->shrink()V

    return-void
.end method

.method static synthetic access$4500(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->extend()V

    return-void
.end method

.method static synthetic access$4600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/widgets/clock/DigitHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    return-object v0
.end method

.method static synthetic access$4700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/widgets/clock/DigitHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    return-object v0
.end method

.method static synthetic access$4800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/widgets/clock/DigitHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    return-object v0
.end method

.method static synthetic access$4900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/regina/widgets/clock/DigitHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    return-object v0
.end method

.method static synthetic access$500(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->showTwistEffect(I)V

    return-void
.end method

.method static synthetic access$5000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherEffectType:I

    return v0
.end method

.method static synthetic access$5002(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherEffectType:I

    return p1
.end method

.method static synthetic access$5100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mNextWeather:I

    return v0
.end method

.method static synthetic access$5202(Lcom/nemustech/regina/widgets/clock/ClockWidget;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-boolean p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsShowWeather:Z

    return p1
.end method

.method static synthetic access$5300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelEffectType:I

    return v0
.end method

.method static synthetic access$5302(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelEffectType:I

    return p1
.end method

.method static synthetic access$5400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    return-object v0
.end method

.method static synthetic access$5500(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    return v0
.end method

.method static synthetic access$5502(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    return p1
.end method

.method static synthetic access$5600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    return v0
.end method

.method static synthetic access$5700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelFoldedHeight:F

    return v0
.end method

.method static synthetic access$5800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateHeight2D()V

    return-void
.end method

.method static synthetic access$5900(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->saveRowNum(I)V

    return-void
.end method

.method static synthetic access$600(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Landroid/content/Context;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$6000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$6100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$6200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$6300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$6400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    return-object v0
.end method

.method static synthetic access$6500(Lcom/nemustech/regina/widgets/clock/ClockWidget;)F
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelUnfoldedHeight:F

    return v0
.end method

.method static synthetic access$6600(Lcom/nemustech/regina/widgets/clock/ClockWidget;FFFFJ)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"
    .parameter "x3"
    .parameter "x4"
    .parameter "x5"

    .prologue
    .line 59
    invoke-direct/range {p0 .. p6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->morphPanel(FFFFJ)V

    return-void
.end method

.method static synthetic access$6702(Lcom/nemustech/regina/widgets/clock/ClockWidget;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-boolean p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mShowForecast:Z

    return p1
.end method

.method static synthetic access$6800(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-virtual {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->saveRowNum(I)V

    return-void
.end method

.method static synthetic access$6900(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    invoke-direct {p0, p1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateWeather(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$700(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$7000(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinute:I

    return v0
.end method

.method static synthetic access$7002(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinute:I

    return p1
.end method

.method static synthetic access$7008(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 2
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinute:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinute:I

    return v0
.end method

.method static synthetic access$702(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$7100(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    return v0
.end method

.method static synthetic access$7102(Lcom/nemustech/regina/widgets/clock/ClockWidget;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    return p1
.end method

.method static synthetic access$7108(Lcom/nemustech/regina/widgets/clock/ClockWidget;)I
    .locals 2
    .parameter "x0"

    .prologue
    .line 59
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    return v0
.end method

.method static synthetic access$7200(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Ljava/lang/Runnable;
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->Timer_Tick:Ljava/lang/Runnable;

    return-object v0
.end method

.method static synthetic access$7300(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->isInScreen()Z

    move-result v0

    return v0
.end method

.method static synthetic access$7400(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->postUpdateWeather()V

    return-void
.end method

.method static synthetic access$7502(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$7602(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-object p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$7700(Lcom/nemustech/regina/widgets/clock/ClockWidget;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"
    .parameter "x3"

    .prologue
    .line 59
    invoke-direct {p0, p1, p2, p3}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->saveCityDatas(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$7800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->removeCityData()V

    return-void
.end method

.method static synthetic access$7900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-boolean v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsRequestFailByNetwork:Z

    return v0
.end method

.method static synthetic access$7902(Lcom/nemustech/regina/widgets/clock/ClockWidget;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-boolean p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsRequestFailByNetwork:Z

    return p1
.end method

.method static synthetic access$800(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->isConnected()Z

    move-result v0

    return v0
.end method

.method static synthetic access$900(Lcom/nemustech/regina/widgets/clock/ClockWidget;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 59
    iget-boolean v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsRefreshing:Z

    return v0
.end method

.method static synthetic access$902(Lcom/nemustech/regina/widgets/clock/ClockWidget;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 59
    iput-boolean p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsRefreshing:Z

    return p1
.end method

.method private convertFahrenheitToCelsius(I)I
    .locals 5
    .parameter "fahrenheit"

    .prologue
    const/16 v1, 0x20

    .line 1317
    const/4 v0, 0x0

    .line 1318
    .local v0, celcius:I
    if-eq p1, v1, :cond_0

    .line 1319
    sub-int v1, p1, v1

    int-to-double v1, v1

    const-wide v3, 0x3ffccccccccccccdL

    div-double/2addr v1, v3

    double-to-int v0, v1

    .line 1320
    :cond_0
    return v0
.end method

.method private createBackCenterHighLightPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 4

    .prologue
    const/4 v3, 0x0

    const v1, 0x3dcccccd

    const/4 v2, 0x0

    .line 450
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    invoke-direct {v0, v1, v1}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 451
    .local v0, panel:Lcom/nemustech/tiffany/world/TFPanel;
    const-string v1, "Back Select Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 452
    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 453
    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 454
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackHighLightJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 455
    invoke-virtual {v0, v2, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 456
    return-object v0
.end method

.method private createBackHolder(Lcom/nemustech/tiffany/world/TFHolder;)V
    .locals 8
    .parameter "holder"

    .prologue
    const/4 v7, 0x7

    const/4 v6, 0x0

    const/4 v5, 0x1

    .line 403
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createBackCenterHighLightPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 404
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 405
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createBackTitleItemPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 406
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 407
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    div-int/lit8 v2, v2, 0x2

    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitlePanelHeightInPixels:I

    div-int/lit8 v3, v3, 0x2

    sub-int/2addr v2, v3

    invoke-virtual {p0, v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v3

    add-int/2addr v2, v3

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v1

    invoke-virtual {v0, v5, v1, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 408
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createBackItemPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 409
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 410
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v1

    neg-float v1, v1

    const/high16 v2, 0x4000

    div-float/2addr v1, v2

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    div-int/lit8 v3, v3, 0x2

    iget v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitlePanelHeightInPixels:I

    sub-int/2addr v3, v4

    iget v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    div-int/lit8 v4, v4, 0x2

    sub-int/2addr v3, v4

    invoke-virtual {p0, v7}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v4

    sub-int/2addr v3, v4

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    add-float/2addr v1, v2

    invoke-virtual {v0, v5, v1, v6}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 412
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, p1}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 413
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v6}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->setVisibility(Z)V

    .line 414
    iput v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    .line 415
    return-void
.end method

.method private createBackItemBitmap(I)Landroid/graphics/Bitmap;
    .locals 35
    .parameter "faceIndex"

    .prologue
    .line 556
    const-class v29, Ljava/lang/Object;

    monitor-enter v29

    .line 558
    :try_start_0
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    move v7, v0

    .line 560
    .local v7, backPanelWidthInPixels:I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    move v6, v0

    .line 561
    .local v6, backPanelHeightInPixels:I
    sget-object v30, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    move v0, v7

    move v1, v6

    move-object/from16 v2, v30

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v19

    .line 562
    .local v19, itemBitmap:Landroid/graphics/Bitmap;
    new-instance v10, Landroid/graphics/Canvas;

    move-object v0, v10

    move-object/from16 v1, v19

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 563
    .local v10, clickedPanelCanvas:Landroid/graphics/Canvas;
    const/16 v30, 0x0

    const/16 v31, 0xff

    const/16 v32, 0xff

    const/16 v33, 0xff

    move-object v0, v10

    move/from16 v1, v30

    move/from16 v2, v31

    move/from16 v3, v32

    move/from16 v4, v33

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawARGB(IIII)V

    .line 565
    new-instance v9, Landroid/graphics/Canvas;

    move-object v0, v9

    move-object/from16 v1, v19

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 567
    .local v9, canvas:Landroid/graphics/Canvas;
    const/16 v30, 0x16

    move-object/from16 v0, p0

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v26

    .line 570
    .local v26, textOffsetX:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v30, v0

    const v31, 0x7f020056

    invoke-static/range {v30 .. v31}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v24

    .line 571
    .local v24, settingIconBitmap:Landroid/graphics/Bitmap;
    if-eqz v24, :cond_1

    .line 572
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move/from16 v30, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitlePanelHeightInPixels:I

    move/from16 v31, v0

    add-int v30, v30, v31

    const/16 v31, 0x7

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v31

    add-int v28, v30, v31

    .line 573
    .local v28, yPos:I
    const/16 v30, 0x37

    move-object/from16 v0, p0

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v22

    .line 574
    .local v22, rowHeight:I
    const/16 v30, 0xf

    move-object/from16 v0, p0

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v16

    .line 575
    .local v16, iconMargin:I
    const/16 v30, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v25

    .line 577
    .local v25, sideMargin:I
    new-instance v18, Landroid/graphics/Paint;

    invoke-direct/range {v18 .. v18}, Landroid/graphics/Paint;-><init>()V

    .line 578
    .local v18, infoPaint:Landroid/graphics/Paint;
    const/16 v30, 0x1

    move-object/from16 v0, v18

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 579
    sget-object v30, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v18

    move-object/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 580
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v30, v0

    const v31, 0x7f06004a

    invoke-virtual/range {v30 .. v31}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v30

    move/from16 v0, v30

    int-to-float v0, v0

    move/from16 v30, v0

    move-object/from16 v0, v18

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 581
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v30, v0

    const v31, 0x7f050006

    invoke-virtual/range {v30 .. v31}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v30

    move-object/from16 v0, v18

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 582
    const/high16 v30, 0x3f00

    const/high16 v31, 0x3f80

    const/high16 v32, 0x3f80

    const/high16 v33, -0x100

    move-object/from16 v0, v18

    move/from16 v1, v30

    move/from16 v2, v31

    move/from16 v3, v32

    move/from16 v4, v33

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 583
    new-instance v27, Landroid/graphics/Rect;

    invoke-direct/range {v27 .. v27}, Landroid/graphics/Rect;-><init>()V

    .line 584
    .local v27, textRt:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v30, v0

    const v31, 0x7f070025

    invoke-virtual/range {v30 .. v31}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 585
    .local v5, appSetting:Ljava/lang/String;
    const/16 v30, 0x0

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v31

    move-object/from16 v0, v18

    move-object v1, v5

    move/from16 v2, v30

    move/from16 v3, v31

    move-object/from16 v4, v27

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 587
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterGadgetList:Ljava/util/List;

    move-object/from16 v30, v0

    if-eqz v30, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterGadgetList:Ljava/util/List;

    move-object/from16 v30, v0

    invoke-interface/range {v30 .. v30}, Ljava/util/List;->clear()V

    .line 589
    :cond_0
    const/16 v17, 0x0

    .local v17, index:I
    :goto_0
    const/16 v30, 0x4

    move/from16 v0, v17

    move/from16 v1, v30

    if-ge v0, v1, :cond_1

    .line 590
    const/16 v30, 0x3

    move/from16 v0, v17

    move/from16 v1, v30

    if-ne v0, v1, :cond_3

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    move/from16 v30, v0

    const/16 v31, 0x1

    move/from16 v0, v30

    move/from16 v1, v31

    if-ne v0, v1, :cond_3

    .line 607
    .end local v5           #appSetting:Ljava/lang/String;
    .end local v16           #iconMargin:I
    .end local v17           #index:I
    .end local v18           #infoPaint:Landroid/graphics/Paint;
    .end local v22           #rowHeight:I
    .end local v25           #sideMargin:I
    .end local v27           #textRt:Landroid/graphics/Rect;
    .end local v28           #yPos:I
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v30, v0

    if-eqz v30, :cond_2

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    move/from16 v30, v0

    const/16 v31, 0x2

    move/from16 v0, v30

    move/from16 v1, v31

    if-ne v0, v1, :cond_2

    .line 608
    new-instance v12, Landroid/graphics/Paint;

    invoke-direct {v12}, Landroid/graphics/Paint;-><init>()V

    .line 609
    .local v12, datePaint:Landroid/graphics/Paint;
    const/16 v30, 0x1

    move-object v0, v12

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 610
    sget-object v30, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object v0, v12

    move-object/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 611
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v30, v0

    const v31, 0x7f060067

    invoke-virtual/range {v30 .. v31}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v30

    move/from16 v0, v30

    int-to-float v0, v0

    move/from16 v30, v0

    move-object v0, v12

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 612
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v30, v0

    const v31, 0x7f050006

    invoke-virtual/range {v30 .. v31}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v30

    move-object v0, v12

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 613
    const/high16 v30, 0x3f00

    const/high16 v31, 0x3f80

    const/high16 v32, 0x3f80

    const/high16 v33, -0x100

    move-object v0, v12

    move/from16 v1, v30

    move/from16 v2, v31

    move/from16 v3, v32

    move/from16 v4, v33

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 614
    new-instance v27, Landroid/graphics/Rect;

    invoke-direct/range {v27 .. v27}, Landroid/graphics/Rect;-><init>()V

    .line 615
    .restart local v27       #textRt:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v30, v0

    const v31, 0x7f070025

    invoke-virtual/range {v30 .. v31}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 616
    .restart local v5       #appSetting:Ljava/lang/String;
    const/16 v30, 0x0

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v31

    move-object v0, v12

    move-object v1, v5

    move/from16 v2, v30

    move/from16 v3, v31

    move-object/from16 v4, v27

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 618
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v30, v0

    invoke-virtual/range {v30 .. v30}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getLastUpdateTime()Ljava/lang/Long;

    move-result-object v30

    invoke-virtual/range {v30 .. v30}, Ljava/lang/Long;->longValue()J

    move-result-wide v20

    .line 619
    .local v20, lastUpdateTime:J
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v8

    .line 620
    .local v8, c:Ljava/util/Calendar;
    move-object v0, v8

    move-wide/from16 v1, v20

    invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 621
    invoke-virtual {v8}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

    move-result-object v11

    .line 622
    .local v11, date:Ljava/util/Date;
    invoke-static {}, Ljava/text/DateFormat;->getDateTimeInstance()Ljava/text/DateFormat;

    move-result-object v14

    .line 623
    .local v14, df:Ljava/text/DateFormat;
    invoke-virtual {v14, v11}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v13

    .line 624
    .local v13, dateString:Ljava/lang/String;
    new-instance v30, Ljava/lang/StringBuilder;

    invoke-direct/range {v30 .. v30}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v31, 0x4

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getStringInSettingsRow(I)Ljava/lang/String;

    move-result-object v31

    invoke-virtual/range {v30 .. v31}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v30

    move-object/from16 v0, v30

    move-object v1, v13

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v30

    invoke-virtual/range {v30 .. v30}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v30

    move/from16 v0, v26

    int-to-float v0, v0

    move/from16 v31, v0

    invoke-virtual/range {v27 .. v27}, Landroid/graphics/Rect;->height()I

    move-result v32

    sub-int v32, v6, v32

    move/from16 v0, v32

    int-to-float v0, v0

    move/from16 v32, v0

    move-object v0, v9

    move-object/from16 v1, v30

    move/from16 v2, v31

    move/from16 v3, v32

    move-object v4, v12

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 626
    .end local v5           #appSetting:Ljava/lang/String;
    .end local v8           #c:Ljava/util/Calendar;
    .end local v11           #date:Ljava/util/Date;
    .end local v12           #datePaint:Landroid/graphics/Paint;
    .end local v13           #dateString:Ljava/lang/String;
    .end local v14           #df:Ljava/text/DateFormat;
    .end local v20           #lastUpdateTime:J
    .end local v27           #textRt:Landroid/graphics/Rect;
    :cond_2
    monitor-exit v29

    return-object v19

    .line 593
    .restart local v5       #appSetting:Ljava/lang/String;
    .restart local v16       #iconMargin:I
    .restart local v17       #index:I
    .restart local v18       #infoPaint:Landroid/graphics/Paint;
    .restart local v22       #rowHeight:I
    .restart local v25       #sideMargin:I
    .restart local v27       #textRt:Landroid/graphics/Rect;
    .restart local v28       #yPos:I
    :cond_3
    move/from16 v0, v26

    int-to-float v0, v0

    move/from16 v30, v0

    mul-int v31, v22, v17

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    const/16 v32, 0x0

    move-object v0, v9

    move-object/from16 v1, v24

    move/from16 v2, v30

    move/from16 v3, v31

    move-object/from16 v4, v32

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 594
    move-object/from16 v0, p0

    move/from16 v1, v17

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getStringInSettingsRow(I)Ljava/lang/String;

    move-result-object v30

    invoke-virtual/range {v24 .. v24}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v31

    add-int v31, v31, v26

    add-int v31, v31, v16

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    invoke-virtual/range {v27 .. v27}, Landroid/graphics/Rect;->height()I

    move-result v32

    mul-int v33, v22, v17

    add-int v32, v32, v33

    move/from16 v0, v32

    int-to-float v0, v0

    move/from16 v32, v0

    move-object v0, v9

    move-object/from16 v1, v30

    move/from16 v2, v31

    move/from16 v3, v32

    move-object/from16 v4, v18

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 596
    new-instance v23, Landroid/graphics/Rect;

    const/16 v30, 0x0

    mul-int v31, v22, v17

    add-int v31, v31, v28

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    move/from16 v32, v0

    mul-int v33, v22, v17

    add-int v33, v33, v28

    invoke-virtual/range {v24 .. v24}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v34

    add-int v33, v33, v34

    move-object/from16 v0, v23

    move/from16 v1, v30

    move/from16 v2, v31

    move/from16 v3, v32

    move/from16 v4, v33

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 597
    .local v23, rowRect:Landroid/graphics/Rect;
    move/from16 v0, v25

    neg-int v0, v0

    move/from16 v30, v0

    move-object/from16 v0, v23

    move/from16 v1, v25

    move/from16 v2, v30

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->inset(II)V

    .line 598
    new-instance v15, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object v0, v15

    move-object/from16 v1, p0

    move-object/from16 v2, v23

    move-object/from16 v3, v23

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 599
    .local v15, gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    const/16 v30, 0x7

    move-object v0, v15

    move/from16 v1, v30

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 600
    move-object/from16 v0, p0

    move/from16 v1, v17

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getRunnableInSettingsRow(I)Ljava/lang/Runnable;

    move-result-object v30

    move-object v0, v15

    move-object/from16 v1, v30

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 601
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterGadgetList:Ljava/util/List;

    move-object/from16 v30, v0

    move-object/from16 v0, v30

    move-object v1, v15

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 589
    add-int/lit8 v17, v17, 0x1

    goto/16 :goto_0

    .line 627
    .end local v5           #appSetting:Ljava/lang/String;
    .end local v6           #backPanelHeightInPixels:I
    .end local v7           #backPanelWidthInPixels:I
    .end local v9           #canvas:Landroid/graphics/Canvas;
    .end local v10           #clickedPanelCanvas:Landroid/graphics/Canvas;
    .end local v15           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v16           #iconMargin:I
    .end local v17           #index:I
    .end local v18           #infoPaint:Landroid/graphics/Paint;
    .end local v19           #itemBitmap:Landroid/graphics/Bitmap;
    .end local v22           #rowHeight:I
    .end local v23           #rowRect:Landroid/graphics/Rect;
    .end local v24           #settingIconBitmap:Landroid/graphics/Bitmap;
    .end local v25           #sideMargin:I
    .end local v26           #textOffsetX:I
    .end local v27           #textRt:Landroid/graphics/Rect;
    .end local v28           #yPos:I
    :catchall_0
    move-exception v30

    monitor-exit v29
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v30
.end method

.method private createBackItemPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 7

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x0

    .line 418
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    .line 420
    .local v1, backPanelWidthInPixels:I
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    .line 422
    .local v0, backPanelHeightInPixels:I
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v3, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v4, v0}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    invoke-direct {v2, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 424
    .local v2, panel:Lcom/nemustech/tiffany/world/TFPanel;
    invoke-virtual {v2, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 425
    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 426
    invoke-virtual {v2, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 427
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 428
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanelEffectFinish:Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 429
    invoke-virtual {v2, v5, v6, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 430
    return-object v2
.end method

.method private createBackTitleBitmap(I)Landroid/graphics/Bitmap;
    .locals 27
    .parameter "faceIndex"

    .prologue
    .line 494
    const-class v22, Ljava/lang/Object;

    monitor-enter v22

    .line 495
    :try_start_0
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    move v7, v0

    .line 496
    .local v7, backTitlePanelWidthInPixels:I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitlePanelHeightInPixels:I

    move v6, v0

    .line 497
    .local v6, backTitlePanelHeightInPixels:I
    sget-object v23, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    move v0, v7

    move v1, v6

    move-object/from16 v2, v23

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v21

    .line 498
    .local v21, titleBitmap:Landroid/graphics/Bitmap;
    new-instance v10, Landroid/graphics/Canvas;

    move-object v0, v10

    move-object/from16 v1, v21

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 499
    .local v10, clickedPanelCanvas:Landroid/graphics/Canvas;
    const/16 v23, 0x0

    const/16 v24, 0xff

    const/16 v25, 0xff

    const/16 v26, 0xff

    move-object v0, v10

    move/from16 v1, v23

    move/from16 v2, v24

    move/from16 v3, v25

    move/from16 v4, v26

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawARGB(IIII)V

    .line 501
    new-instance v9, Landroid/graphics/Canvas;

    move-object v0, v9

    move-object/from16 v1, v21

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 502
    .local v9, canvas:Landroid/graphics/Canvas;
    new-instance v16, Landroid/graphics/Paint;

    invoke-direct/range {v16 .. v16}, Landroid/graphics/Paint;-><init>()V

    .line 503
    .local v16, paint:Landroid/graphics/Paint;
    new-instance v8, Landroid/graphics/Rect;

    invoke-direct {v8}, Landroid/graphics/Rect;-><init>()V

    .line 504
    .local v8, bounds:Landroid/graphics/Rect;
    const/16 v23, 0x1

    move-object/from16 v0, v16

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 505
    sget-object v23, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v16

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 506
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v23, v0

    const v24, 0x7f060042

    invoke-virtual/range {v23 .. v24}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    move-object/from16 v0, v16

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 507
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mRC:Lcom/nemustech/regina/ResourceCare;

    move-object/from16 v23, v0

    const v24, 0x7f050006

    invoke-virtual/range {v23 .. v24}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v23

    move-object/from16 v0, v16

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 508
    const/high16 v23, 0x3f00

    const/high16 v24, 0x3f80

    const/high16 v25, 0x3f80

    const/high16 v26, -0x100

    move-object/from16 v0, v16

    move/from16 v1, v23

    move/from16 v2, v24

    move/from16 v3, v25

    move/from16 v4, v26

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 509
    const-string v23, "Ajustes de Clock Widget"

    move-object/from16 v0, v23

    move-object/from16 v1, v16

    move v2, v7

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RUtils;->getEllipsisString(Ljava/lang/String;Landroid/graphics/Paint;I)Ljava/lang/String;

    move-result-object v11

    .line 510
    .local v11, ellipsisString:Ljava/lang/String;
    const/16 v23, 0x0

    invoke-virtual {v11}, Ljava/lang/String;->length()I

    move-result v24

    move-object/from16 v0, v16

    move-object v1, v11

    move/from16 v2, v23

    move/from16 v3, v24

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 511
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitlePanelHeightInPixels:I

    move/from16 v23, v0

    invoke-virtual {v8}, Landroid/graphics/Rect;->height()I

    move-result v24

    sub-int v23, v23, v24

    div-int/lit8 v23, v23, 0x2

    move/from16 v0, v23

    int-to-float v0, v0

    move v15, v0

    .line 512
    .local v15, offsetY:F
    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Paint;->ascent()F

    move-result v23

    move/from16 v0, v23

    neg-float v0, v0

    move/from16 v23, v0

    move/from16 v0, v23

    float-to-double v0, v0

    move-wide/from16 v23, v0

    invoke-static/range {v23 .. v24}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v23

    move-wide/from16 v0, v23

    double-to-int v0, v0

    move v5, v0

    .line 513
    .local v5, ascent:I
    const/16 v23, 0x16

    move-object/from16 v0, p0

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v20

    .line 514
    .local v20, textOffsetX:I
    move/from16 v0, v20

    int-to-float v0, v0

    move/from16 v23, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move/from16 v24, v0

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v24, v0

    add-float v24, v24, v15

    move v0, v5

    int-to-float v0, v0

    move/from16 v25, v0

    add-float v24, v24, v25

    move-object v0, v9

    move-object v1, v11

    move/from16 v2, v23

    move/from16 v3, v24

    move-object/from16 v4, v16

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 516
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleGadgetList:Ljava/util/List;

    move-object/from16 v23, v0

    if-eqz v23, :cond_0

    .line 517
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleGadgetList:Ljava/util/List;

    move-object/from16 v23, v0

    invoke-interface/range {v23 .. v23}, Ljava/util/List;->clear()V

    .line 520
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v23

    const v24, 0x7f020059

    invoke-static/range {v23 .. v24}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v18

    .line 521
    .local v18, returnIcon:Landroid/graphics/Bitmap;
    if-eqz v18, :cond_1

    .line 522
    const/16 v23, 0x23

    move-object/from16 v0, p0

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v13

    .line 523
    .local v13, iconOffsetX:I
    const/16 v23, 0x1e

    move-object/from16 v0, p0

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v14

    .line 525
    .local v14, iconOffsetY:I
    sub-int v23, v7, v13

    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v24

    div-int/lit8 v24, v24, 0x2

    sub-int v23, v23, v24

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v24

    div-int/lit8 v24, v24, 0x2

    add-int v24, v24, v14

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v24, v0

    const/16 v25, 0x0

    move-object v0, v9

    move-object/from16 v1, v18

    move/from16 v2, v23

    move/from16 v3, v24

    move-object/from16 v4, v25

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 527
    new-instance v17, Landroid/graphics/Rect;

    sub-int v23, v7, v13

    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v24

    div-int/lit8 v24, v24, 0x2

    sub-int v23, v23, v24

    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v24

    div-int/lit8 v24, v24, 0x2

    add-int v24, v24, v14

    sub-int v25, v7, v13

    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v26

    div-int/lit8 v26, v26, 0x2

    add-int v25, v25, v26

    invoke-virtual/range {v18 .. v18}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v26

    mul-int/lit8 v26, v26, 0x3

    div-int/lit8 v26, v26, 0x2

    add-int v26, v26, v14

    move-object/from16 v0, v17

    move/from16 v1, v23

    move/from16 v2, v24

    move/from16 v3, v25

    move/from16 v4, v26

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 531
    .local v17, rect:Landroid/graphics/Rect;
    const/16 v23, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v23

    move/from16 v0, v23

    neg-int v0, v0

    move/from16 v23, v0

    const/16 v24, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v24

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v24

    move/from16 v0, v24

    neg-int v0, v0

    move/from16 v24, v0

    move-object/from16 v0, v17

    move/from16 v1, v23

    move/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->inset(II)V

    .line 540
    new-instance v12, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object v0, v12

    move-object/from16 v1, p0

    move-object/from16 v2, v17

    move-object/from16 v3, v17

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 541
    .local v12, gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    const/16 v23, 0x7

    move-object v0, v12

    move/from16 v1, v23

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setGadgetType(I)V

    .line 542
    new-instance v19, Lcom/nemustech/regina/widgets/clock/ClockWidget$6;

    move-object/from16 v0, v19

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget$6;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    .line 548
    .local v19, runnable:Ljava/lang/Runnable;
    move-object v0, v12

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 549
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleGadgetList:Ljava/util/List;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    move-object v1, v12

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 551
    .end local v12           #gadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v13           #iconOffsetX:I
    .end local v14           #iconOffsetY:I
    .end local v17           #rect:Landroid/graphics/Rect;
    .end local v19           #runnable:Ljava/lang/Runnable;
    :cond_1
    monitor-exit v22

    return-object v21

    .line 552
    .end local v5           #ascent:I
    .end local v6           #backTitlePanelHeightInPixels:I
    .end local v7           #backTitlePanelWidthInPixels:I
    .end local v8           #bounds:Landroid/graphics/Rect;
    .end local v9           #canvas:Landroid/graphics/Canvas;
    .end local v10           #clickedPanelCanvas:Landroid/graphics/Canvas;
    .end local v11           #ellipsisString:Ljava/lang/String;
    .end local v15           #offsetY:F
    .end local v16           #paint:Landroid/graphics/Paint;
    .end local v18           #returnIcon:Landroid/graphics/Bitmap;
    .end local v20           #textOffsetX:I
    .end local v21           #titleBitmap:Landroid/graphics/Bitmap;
    :catchall_0
    move-exception v23

    monitor-exit v22
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v23
.end method

.method private createBackTitleItemPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 7

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x0

    .line 434
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    .line 435
    .local v1, backTitlePanelWidthInPixels:I
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitlePanelHeightInPixels:I

    .line 437
    .local v0, backTitlePanelHeightInPixels:I
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v3, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v4, v0}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    invoke-direct {v2, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 440
    .local v2, panel:Lcom/nemustech/tiffany/world/TFPanel;
    invoke-virtual {v2, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 441
    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 442
    invoke-virtual {v2, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 443
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackTitleJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 444
    invoke-virtual {v2, v5, v6, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 446
    return-object v2
.end method

.method private createBottomBackgroundPanel(Landroid/graphics/Bitmap;IIII)Lcom/nemustech/tiffany/world/TFPanel;
    .locals 8
    .parameter "bmp"
    .parameter "left"
    .parameter "top"
    .parameter "right"
    .parameter "bottom"

    .prologue
    const/4 v7, 0x0

    .line 1259
    new-instance v1, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    sub-int v4, p4, p2

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    sub-int v5, p5, p3

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    invoke-direct {v1, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 1260
    .local v1, panel:Lcom/nemustech/tiffany/world/TFPanel;
    sub-int v3, p4, p2

    sub-int v4, p5, p3

    sget-object v5, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v3, v4, v5}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v2

    .line 1261
    .local v2, partialBmp:Landroid/graphics/Bitmap;
    new-instance v0, Landroid/graphics/Canvas;

    invoke-direct {v0, v2}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1262
    .local v0, canvas:Landroid/graphics/Canvas;
    if-eqz p1, :cond_0

    .line 1263
    new-instance v3, Landroid/graphics/Rect;

    invoke-direct {v3, p2, p3, p4, p5}, Landroid/graphics/Rect;-><init>(IIII)V

    new-instance v4, Landroid/graphics/Rect;

    sub-int v5, p4, p2

    sub-int v6, p5, p3

    invoke-direct {v4, v7, v7, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V

    const/4 v5, 0x0

    invoke-virtual {v0, p1, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1264
    :cond_0
    invoke-virtual {v1, v7, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;)Z

    .line 1266
    const/4 v3, 0x1

    invoke-virtual {v1, v3, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 1267
    invoke-virtual {v2}, Landroid/graphics/Bitmap;->recycle()V

    .line 1268
    :cond_1
    return-object v1
.end method

.method private createBottomBackgroundPanelHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .locals 10

    .prologue
    const/high16 v9, 0x4000

    const/4 v8, 0x1

    .line 1180
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f020026

    invoke-static {v0, v2}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 1181
    .local v1, bgImage:Landroid/graphics/Bitmap;
    new-instance v6, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v6}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>()V

    .line 1182
    .local v6, holder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const-string v0, "BottomBackPanel holder"

    iput-object v0, v6, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 1183
    const/4 v2, 0x0

    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    sub-int v3, v0, v3

    iget v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    iget v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createBottomBackgroundPanel(Landroid/graphics/Bitmap;IIII)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v0

    iput-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1184
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v6}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1185
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v0, v8}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getLocation(I)F

    move-result v0

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v2, v8}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation(I)F

    move-result v2

    add-float/2addr v0, v2

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v2

    div-float/2addr v2, v9

    sub-float/2addr v0, v2

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v2

    sub-float/2addr v0, v2

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v2

    div-float/2addr v2, v9

    sub-float v7, v0, v2

    .line 1187
    .local v7, locationY:F
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v8, v7, v8}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 1189
    invoke-virtual {v1}, Landroid/graphics/Bitmap;->recycle()V

    .line 1190
    return-object v6
.end method

.method private createDigitBackgroundHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .locals 6

    .prologue
    const/4 v5, 0x1

    .line 789
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createTopBackPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v1

    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 790
    new-instance v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>()V

    .line 791
    .local v0, holder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const-string v1, "DigitBackground Holder"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 792
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v0}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 793
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/4 v3, 0x7

    invoke-virtual {p0, v3}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v3

    int-to-float v3, v3

    const/high16 v4, 0x3f00

    add-float/2addr v3, v4

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;F)F

    move-result v2

    invoke-virtual {v1, v5, v2, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 794
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v1, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 795
    return-object v0
.end method

.method private createDigitsHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .locals 11

    .prologue
    const v4, 0x7f020029

    const/16 v10, 0x30

    const/4 v9, 0x0

    const/4 v8, 0x0

    const/4 v7, 0x1

    .line 988
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v1

    .line 989
    .local v1, digitWidthInPixels:I
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v0

    .line 991
    .local v0, digitHeightInPixels:I
    new-instance v2, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v2, v8}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>(Z)V

    .line 992
    .local v2, holder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const-string v3, "Digits holder"

    iput-object v3, v2, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 994
    new-instance v3, Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v4, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v5, v0}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-direct {v3, v4, v5}, Lcom/nemustech/regina/widgets/clock/DigitHolder;-><init>(FF)V

    iput-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    .line 995
    new-instance v3, Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v4, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v5, v0}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-direct {v3, v4, v5}, Lcom/nemustech/regina/widgets/clock/DigitHolder;-><init>(FF)V

    iput-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    .line 996
    new-instance v3, Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v4, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v5, v0}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-direct {v3, v4, v5}, Lcom/nemustech/regina/widgets/clock/DigitHolder;-><init>(FF)V

    iput-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    .line 997
    new-instance v3, Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v4, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v5, v0}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-direct {v3, v4, v5}, Lcom/nemustech/regina/widgets/clock/DigitHolder;-><init>(FF)V

    iput-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    .line 999
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    const-string v4, "HourTens"

    iput-object v4, v3, Lcom/nemustech/regina/widgets/clock/DigitHolder;->mDescription:Ljava/lang/String;

    .line 1000
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    const-string v4, "HourOnes"

    iput-object v4, v3, Lcom/nemustech/regina/widgets/clock/DigitHolder;->mDescription:Ljava/lang/String;

    .line 1001
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    const-string v4, "MinuteTens"

    iput-object v4, v3, Lcom/nemustech/regina/widgets/clock/DigitHolder;->mDescription:Ljava/lang/String;

    .line 1002
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    const-string v4, "MinuteOnes"

    iput-object v4, v3, Lcom/nemustech/regina/widgets/clock/DigitHolder;->mDescription:Ljava/lang/String;

    .line 1004
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    new-instance v4, Lcom/nemustech/tiffany/world/TFResourceProvider;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    sget-object v6, Lcom/nemustech/regina/widgets/clock/ClockWidget;->IMAGE_RESOURCE:[I

    invoke-direct {v4, v5, v6}, Lcom/nemustech/tiffany/world/TFResourceProvider;-><init>(Landroid/content/res/Resources;[I)V

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setItemProvider(Lcom/nemustech/tiffany/world/TFItemProvider;)V

    .line 1005
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    new-instance v4, Lcom/nemustech/tiffany/world/TFResourceProvider;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    sget-object v6, Lcom/nemustech/regina/widgets/clock/ClockWidget;->IMAGE_RESOURCE:[I

    invoke-direct {v4, v5, v6}, Lcom/nemustech/tiffany/world/TFResourceProvider;-><init>(Landroid/content/res/Resources;[I)V

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setItemProvider(Lcom/nemustech/tiffany/world/TFItemProvider;)V

    .line 1006
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    new-instance v4, Lcom/nemustech/tiffany/world/TFResourceProvider;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    sget-object v6, Lcom/nemustech/regina/widgets/clock/ClockWidget;->IMAGE_RESOURCE:[I

    invoke-direct {v4, v5, v6}, Lcom/nemustech/tiffany/world/TFResourceProvider;-><init>(Landroid/content/res/Resources;[I)V

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setItemProvider(Lcom/nemustech/tiffany/world/TFItemProvider;)V

    .line 1007
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    new-instance v4, Lcom/nemustech/tiffany/world/TFResourceProvider;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    sget-object v6, Lcom/nemustech/regina/widgets/clock/ClockWidget;->IMAGE_RESOURCE:[I

    invoke-direct {v4, v5, v6}, Lcom/nemustech/tiffany/world/TFResourceProvider;-><init>(Landroid/content/res/Resources;[I)V

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setItemProvider(Lcom/nemustech/tiffany/world/TFItemProvider;)V

    .line 1009
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v7}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setEndlessMode(Z)V

    .line 1010
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v7}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setEndlessMode(Z)V

    .line 1011
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v7}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setEndlessMode(Z)V

    .line 1012
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v7}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setEndlessMode(Z)V

    .line 1014
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v3

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAutoRepositionMode(Z)V

    .line 1015
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v3

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAutoRepositionMode(Z)V

    .line 1016
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v3

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAutoRepositionMode(Z)V

    .line 1017
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v3

    invoke-virtual {v3, v7}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAutoRepositionMode(Z)V

    .line 1019
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v8}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setFadingEffect(Z)V

    .line 1020
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v8}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setFadingEffect(Z)V

    .line 1021
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v8}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setFadingEffect(Z)V

    .line 1022
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v8}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setFadingEffect(Z)V

    .line 1024
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/16 v5, 0x8e

    invoke-virtual {p0, v5}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v5

    neg-int v5, v5

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {p0, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v6

    neg-int v6, v6

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-virtual {v3, v4, v5, v9}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->locate(FFF)V

    .line 1025
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/16 v5, 0x39

    invoke-virtual {p0, v5}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v5

    neg-int v5, v5

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {p0, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v6

    neg-int v6, v6

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-virtual {v3, v4, v5, v9}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->locate(FFF)V

    .line 1026
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/16 v5, 0x38

    invoke-virtual {p0, v5}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v5

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {p0, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v6

    neg-int v6, v6

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-virtual {v3, v4, v5, v9}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->locate(FFF)V

    .line 1027
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/16 v5, 0x8d

    invoke-virtual {p0, v5}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v5

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {p0, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v6

    neg-int v6, v6

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-virtual {v3, v4, v5, v9}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->locate(FFF)V

    .line 1029
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v2}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1030
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v2}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1031
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v2}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1032
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v2}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1034
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolderHandleDownListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setOnHandleDownListener(Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;)V

    .line 1035
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolderHandleDownListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setOnHandleDownListener(Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;)V

    .line 1036
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolderHandleDownListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setOnHandleDownListener(Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;)V

    .line 1037
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolderHandleDownListener:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setOnHandleDownListener(Lcom/nemustech/regina/widgets/clock/DigitHolder$OnHandleDownListener;)V

    .line 1039
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolModelSelectListner:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setOnModelSelectListener(Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;)V

    .line 1040
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolModelSelectListner:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setOnModelSelectListener(Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;)V

    .line 1041
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolModelSelectListner:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setOnModelSelectListener(Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;)V

    .line 1042
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitHolModelSelectListner:Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setOnModelSelectListener(Lcom/nemustech/regina/widgets/clock/DigitHolder$OnModelSelectListner;)V

    .line 1044
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mClockCorrection:Lcom/nemustech/tiffany/world/TFHolder$OnUpdateHolderListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setUpdateHolderListener(Lcom/nemustech/tiffany/world/TFHolder$OnUpdateHolderListener;)V

    .line 1046
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v4}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1047
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v4}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1048
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v4}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1049
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mEventConsumerList:Ljava/util/LinkedList;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3, v4}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1051
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAnimationEventListener(Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 1052
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAnimationEventListener(Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 1053
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAnimationEventListener(Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 1054
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    invoke-virtual {v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->getMoveAnimation()Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitAnimationListener:Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFSimpleHolder$SimpleMoveAnimation;->setAnimationEventListener(Lcom/nemustech/tiffany/world/TFAnimation$AnimationEventListener;)V

    .line 1057
    return-object v2
.end method

.method private createForecastBitmap(IILjava/lang/String;III)Landroid/graphics/Bitmap;
    .locals 23
    .parameter "month"
    .parameter "date"
    .parameter "day"
    .parameter "weather"
    .parameter "high"
    .parameter "low"

    .prologue
    .line 1626
    const-class v18, Ljava/lang/Object;

    monitor-enter v18

    .line 1627
    const/16 v19, 0x4c

    :try_start_0
    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v9

    .line 1629
    .local v9, forecastPanelWidthInPixels:I
    const/16 v19, 0x5a

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v8

    .line 1630
    .local v8, forecastPanelHeightInPixels:I
    sget-object v19, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    move v0, v9

    move v1, v8

    move-object/from16 v2, v19

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v5

    .line 1631
    .local v5, bmp:Landroid/graphics/Bitmap;
    new-instance v6, Landroid/graphics/Canvas;

    invoke-direct {v6, v5}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1632
    .local v6, canvas:Landroid/graphics/Canvas;
    const/16 v19, 0x0

    const/16 v20, 0xff

    const/16 v21, 0xff

    const/16 v22, 0xff

    move-object v0, v6

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawARGB(IIII)V

    .line 1633
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v19, v0

    invoke-static/range {v19 .. v19}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v14

    .line 1636
    .local v14, rc:Lcom/nemustech/regina/ResourceCare;
    new-instance v13, Landroid/graphics/Paint;

    invoke-direct {v13}, Landroid/graphics/Paint;-><init>()V

    .line 1637
    .local v13, paint:Landroid/graphics/Paint;
    const/16 v19, 0x1

    move-object v0, v13

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 1638
    const/high16 v19, 0x3f00

    const/high16 v20, 0x3f80

    const/high16 v21, 0x3f80

    const/high16 v22, -0x100

    move-object v0, v13

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 1650
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v19, v0

    invoke-static/range {p4 .. p4}, Lcom/nemustech/regina/widgets/clock/Weather;->getCode(I)I

    move-result v20

    invoke-static/range {v20 .. v20}, Lcom/nemustech/regina/widgets/clock/Weather;->getForecastResourceId(I)I

    move-result v20

    invoke-static/range {v19 .. v20}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v11

    .line 1651
    .local v11, iconBitmapForSize:Landroid/graphics/Bitmap;
    if-eqz v11, :cond_0

    .line 1652
    new-instance v15, Landroid/graphics/Rect;

    const/16 v19, 0x0

    const/16 v20, 0x0

    invoke-virtual {v11}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v21

    invoke-virtual {v11}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v22

    move-object v0, v15

    move/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move/from16 v4, v22

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1654
    .local v15, srcRect:Landroid/graphics/Rect;
    new-instance v7, Landroid/graphics/Rect;

    const/16 v19, 0x0

    const/16 v20, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v20

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v20

    const/16 v21, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v21

    sub-int v21, v8, v21

    move-object v0, v7

    move/from16 v1, v19

    move/from16 v2, v20

    move v3, v9

    move/from16 v4, v21

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1655
    .local v7, destRect:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v19, v0

    invoke-static/range {p4 .. p4}, Lcom/nemustech/regina/widgets/clock/Weather;->getCode(I)I

    move-result v20

    invoke-static/range {v20 .. v20}, Lcom/nemustech/regina/widgets/clock/Weather;->getForecastResourceId(I)I

    move-result v20

    invoke-static/range {v19 .. v20}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v10

    .line 1656
    .local v10, iconBitmap:Landroid/graphics/Bitmap;
    if-eqz v10, :cond_0

    .line 1657
    const/16 v19, 0x0

    move-object v0, v6

    move-object v1, v10

    move-object v2, v15

    move-object v3, v7

    move-object/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1658
    invoke-virtual {v10}, Landroid/graphics/Bitmap;->recycle()V

    .line 1663
    .end local v7           #destRect:Landroid/graphics/Rect;
    .end local v10           #iconBitmap:Landroid/graphics/Bitmap;
    .end local v15           #srcRect:Landroid/graphics/Rect;
    :cond_0
    const v19, 0x7f05000a

    move-object v0, v14

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v19

    move-object v0, v13

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1664
    const v19, 0x7f060065

    move-object v0, v14

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionF(I)F

    move-result v19

    move-object v0, v13

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1665
    sget-object v19, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    move-object v0, v13

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1667
    invoke-virtual/range {p3 .. p3}, Ljava/lang/String;->length()I

    move-result v19

    const/16 v20, 0x2

    move/from16 v0, v19

    move/from16 v1, v20

    if-le v0, v1, :cond_1

    .line 1668
    const/16 v19, 0x0

    const/16 v20, 0x2

    move-object/from16 v0, p3

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p3

    .line 1670
    :cond_1
    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    const-string v20, "%d/%d "

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, v19

    move-object/from16 v1, p3

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x2

    move/from16 v0, v20

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v20, v0

    const/16 v21, 0x0

    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v22

    aput-object v22, v20, v21

    const/16 v21, 0x1

    invoke-static/range {p2 .. p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v22

    aput-object v22, v20, v21

    invoke-static/range {v19 .. v20}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v19

    div-int/lit8 v20, v9, 0x2

    move/from16 v0, v20

    int-to-float v0, v0

    move/from16 v20, v0

    const/16 v21, 0x12

    move-object/from16 v0, p0

    move/from16 v1, v21

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v21

    move/from16 v0, v21

    int-to-float v0, v0

    move/from16 v21, v0

    move-object v0, v6

    move-object/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move-object v4, v13

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1673
    const/16 v19, 0x3

    move-object/from16 v0, p0

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v12

    .line 1674
    .local v12, padding:I
    const v19, 0x3f4ccccd

    move-object v0, v13

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextScaleX(F)V

    .line 1675
    const v19, 0x7f060066

    move-object v0, v14

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionF(I)F

    move-result v19

    move-object v0, v13

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1676
    sget-object v19, Landroid/graphics/Paint$Align;->RIGHT:Landroid/graphics/Paint$Align;

    move-object v0, v13

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1677
    const v19, 0x7f05000c

    move-object v0, v14

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v19

    move-object v0, v13

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1679
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v19, v0

    if-nez v19, :cond_2

    move/from16 v17, p6

    .line 1680
    .local v17, tempLow:I
    :goto_0
    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    const-string v20, "%d"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v20

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTempUnitString(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x1

    move/from16 v0, v20

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v20, v0

    const/16 v21, 0x0

    invoke-static/range {v17 .. v17}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v22

    aput-object v22, v20, v21

    invoke-static/range {v19 .. v20}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v19

    div-int/lit8 v20, v9, 0x2

    sub-int v20, v20, v12

    move/from16 v0, v20

    int-to-float v0, v0

    move/from16 v20, v0

    move v0, v8

    int-to-float v0, v0

    move/from16 v21, v0

    move-object v0, v6

    move-object/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move-object v4, v13

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1683
    sget-object v19, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    move-object v0, v13

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1684
    const v19, 0x7f05000a

    move-object v0, v14

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v19

    move-object v0, v13

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1685
    const-string v19, "/"

    div-int/lit8 v20, v9, 0x2

    move/from16 v0, v20

    int-to-float v0, v0

    move/from16 v20, v0

    move v0, v8

    int-to-float v0, v0

    move/from16 v21, v0

    move-object v0, v6

    move-object/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move-object v4, v13

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1687
    sget-object v19, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object v0, v13

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1688
    const v19, 0x7f05000b

    move-object v0, v14

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v19

    move-object v0, v13

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1690
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v19, v0

    if-nez v19, :cond_3

    move/from16 v16, p5

    .line 1691
    .local v16, tempHigh:I
    :goto_1
    new-instance v19, Ljava/lang/StringBuilder;

    invoke-direct/range {v19 .. v19}, Ljava/lang/StringBuilder;-><init>()V

    const-string v20, "%d"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v20, v0

    move-object/from16 v0, p0

    move/from16 v1, v20

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTempUnitString(I)Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    const/16 v20, 0x1

    move/from16 v0, v20

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v20, v0

    const/16 v21, 0x0

    invoke-static/range {v16 .. v16}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v22

    aput-object v22, v20, v21

    invoke-static/range {v19 .. v20}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v19

    div-int/lit8 v20, v9, 0x2

    add-int v20, v20, v12

    move/from16 v0, v20

    int-to-float v0, v0

    move/from16 v20, v0

    move v0, v8

    int-to-float v0, v0

    move/from16 v21, v0

    move-object v0, v6

    move-object/from16 v1, v19

    move/from16 v2, v20

    move/from16 v3, v21

    move-object v4, v13

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1693
    monitor-exit v18

    return-object v5

    .line 1679
    .end local v16           #tempHigh:I
    .end local v17           #tempLow:I
    :cond_2
    move-object/from16 v0, p0

    move/from16 v1, p6

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertFahrenheitToCelsius(I)I

    move-result v19

    move/from16 v17, v19

    goto/16 :goto_0

    .line 1690
    .restart local v17       #tempLow:I
    :cond_3
    move-object/from16 v0, p0

    move/from16 v1, p5

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertFahrenheitToCelsius(I)I

    move-result v19

    move/from16 v16, v19

    goto :goto_1

    .line 1694
    .end local v5           #bmp:Landroid/graphics/Bitmap;
    .end local v6           #canvas:Landroid/graphics/Canvas;
    .end local v8           #forecastPanelHeightInPixels:I
    .end local v9           #forecastPanelWidthInPixels:I
    .end local v11           #iconBitmapForSize:Landroid/graphics/Bitmap;
    .end local v12           #padding:I
    .end local v13           #paint:Landroid/graphics/Paint;
    .end local v14           #rc:Lcom/nemustech/regina/ResourceCare;
    .end local v17           #tempLow:I
    :catchall_0
    move-exception v19

    monitor-exit v18
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v19
.end method

.method private createForecastHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .locals 8

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 1481
    new-instance v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v0, v7}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>(Z)V

    .line 1482
    .local v0, holder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const-string v3, "weather forecast holder"

    iput-object v3, v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 1483
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    const/4 v3, 0x4

    if-ge v1, v3, :cond_0

    .line 1484
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/16 v4, 0x4c

    invoke-virtual {p0, v4}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v4

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/16 v5, 0x5a

    invoke-virtual {p0, v5}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v5

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    invoke-direct {v2, v0, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(Lcom/nemustech/tiffany/world/TFHolder;FF)V

    .line 1485
    .local v2, p:Lcom/nemustech/tiffany/world/TFPanel;
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    mul-int/lit8 v4, v1, 0x60

    add-int/lit16 v4, v4, -0x90

    invoke-virtual {p0, v4}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v4

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    invoke-virtual {v2, v6, v3, v7}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 1486
    invoke-virtual {v2, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1487
    invoke-virtual {v2, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 1483
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 1489
    .end local v2           #p:Lcom/nemustech/tiffany/world/TFPanel;
    :cond_0
    const/4 v3, 0x0

    invoke-virtual {v0, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setOpacity(F)V

    .line 1490
    iput v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastDisplayState:I

    .line 1491
    return-object v0
.end method

.method private createFrontHighLightPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 4

    .prologue
    const/4 v3, 0x0

    const v1, 0x3dcccccd

    const/4 v2, 0x0

    .line 393
    new-instance v0, Lcom/nemustech/tiffany/world/TFPanel;

    invoke-direct {v0, v1, v1}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 394
    .local v0, panel:Lcom/nemustech/tiffany/world/TFPanel;
    const-string v1, "Back Select Panel"

    iput-object v1, v0, Lcom/nemustech/tiffany/world/TFPanel;->mDescription:Ljava/lang/String;

    .line 395
    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 396
    invoke-virtual {v0, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 397
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontHighLightJit:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 398
    invoke-virtual {v0, v2, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 399
    return-object v0
.end method

.method private createFrontItemPanelBitmap(Ljava/lang/String;)Landroid/graphics/Bitmap;
    .locals 50
    .parameter "content"

    .prologue
    .line 1324
    const-class v44, Ljava/lang/Object;

    monitor-enter v44

    .line 1325
    :try_start_0
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelWidthInPixels:I

    move/from16 v45, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelHeightInPixels:I

    move/from16 v46, v0

    sget-object v47, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static/range {v45 .. v47}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v11

    .line 1326
    .local v11, bmp:Landroid/graphics/Bitmap;
    new-instance v12, Landroid/graphics/Canvas;

    invoke-direct {v12, v11}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1327
    .local v12, canvas:Landroid/graphics/Canvas;
    const/16 v45, 0x0

    const/16 v46, 0xff

    const/16 v47, 0xff

    const/16 v48, 0xff

    move-object v0, v12

    move/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move/from16 v4, v48

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawARGB(IIII)V

    .line 1328
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v45, v0

    invoke-static/range {v45 .. v45}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v29

    .line 1330
    .local v29, rc:Lcom/nemustech/regina/ResourceCare;
    new-instance v28, Landroid/graphics/Paint;

    invoke-direct/range {v28 .. v28}, Landroid/graphics/Paint;-><init>()V

    .line 1331
    .local v28, paint:Landroid/graphics/Paint;
    const/16 v45, 0x1

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 1332
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mSideEndMarginInPixels:I

    move/from16 v45, v0

    const/16 v46, 0x3

    move-object/from16 v0, p0

    move/from16 v1, v46

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v46

    add-int v8, v45, v46

    .line 1333
    .local v8, ampmPositionX:I
    const/16 v45, 0x4b

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v9

    .line 1335
    .local v9, ampmPositionY:I
    new-instance v6, Landroid/graphics/Rect;

    const/16 v45, 0x0

    const/16 v46, 0x0

    const/16 v47, 0x0

    const/16 v48, 0x0

    move-object v0, v6

    move/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move/from16 v4, v48

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1337
    .local v6, ampmBound:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTwentyFourHourMode:Z

    move/from16 v45, v0

    if-nez v45, :cond_0

    .line 1338
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mAmPm:I

    move/from16 v45, v0

    if-nez v45, :cond_5

    const-string v45, "AM"

    move-object/from16 v5, v45

    .line 1339
    .local v5, ampm:Ljava/lang/String;
    :goto_0
    const v45, 0x7f060063

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v45

    move/from16 v0, v45

    int-to-float v0, v0

    move/from16 v45, v0

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1340
    const/16 v45, 0x0

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v46

    move-object/from16 v0, v28

    move-object v1, v5

    move/from16 v2, v45

    move/from16 v3, v46

    move-object v4, v6

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 1341
    invoke-virtual {v6}, Landroid/graphics/Rect;->width()I

    move-result v10

    .line 1342
    .local v10, ampmWidthInPixels:I
    invoke-virtual {v6}, Landroid/graphics/Rect;->height()I

    move-result v7

    .line 1343
    .local v7, ampmHeightInPixels:I
    const/16 v45, 0x3

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v41

    .line 1344
    .local v41, textPadding:I
    sub-int v45, v8, v41

    move/from16 v0, v45

    move-object v1, v6

    iput v0, v1, Landroid/graphics/Rect;->left:I

    .line 1345
    sub-int v45, v9, v7

    sub-int v45, v45, v41

    move/from16 v0, v45

    move-object v1, v6

    iput v0, v1, Landroid/graphics/Rect;->top:I

    .line 1346
    add-int v45, v8, v10

    add-int v45, v45, v41

    const/16 v46, 0x2

    move-object/from16 v0, p0

    move/from16 v1, v46

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v46

    add-int v45, v45, v46

    move/from16 v0, v45

    move-object v1, v6

    iput v0, v1, Landroid/graphics/Rect;->right:I

    .line 1347
    add-int v45, v9, v41

    move/from16 v0, v45

    move-object v1, v6

    iput v0, v1, Landroid/graphics/Rect;->bottom:I

    .line 1348
    const v45, 0x7f05000e

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v45

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1349
    move-object v0, v12

    move-object v1, v6

    move-object/from16 v2, v28

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1350
    const/16 v45, -0x1

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1351
    const v45, 0x7f060063

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v45

    move/from16 v0, v45

    int-to-float v0, v0

    move/from16 v45, v0

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1352
    const/high16 v45, 0x3f00

    const/high16 v46, 0x4000

    const/high16 v47, 0x4000

    const/high16 v48, -0x100

    move-object/from16 v0, v28

    move/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move/from16 v4, v48

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 1353
    move v0, v8

    int-to-float v0, v0

    move/from16 v45, v0

    move v0, v9

    int-to-float v0, v0

    move/from16 v46, v0

    move-object v0, v12

    move-object v1, v5

    move/from16 v2, v45

    move/from16 v3, v46

    move-object/from16 v4, v28

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1354
    move-object v0, v6

    iget v0, v0, Landroid/graphics/Rect;->right:I

    move/from16 v45, v0

    const/16 v46, 0x5

    move-object/from16 v0, p0

    move/from16 v1, v46

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v46

    add-int v45, v45, v46

    move/from16 v0, v45

    move-object v1, v6

    iput v0, v1, Landroid/graphics/Rect;->right:I

    .line 1358
    .end local v5           #ampm:Ljava/lang/String;
    .end local v7           #ampmHeightInPixels:I
    .end local v10           #ampmWidthInPixels:I
    .end local v41           #textPadding:I
    :cond_0
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mSideEndMarginInPixels:I

    move/from16 v45, v0

    invoke-virtual {v6}, Landroid/graphics/Rect;->width()I

    move-result v46

    add-int v25, v45, v46

    .line 1359
    .local v25, datePositionX:I
    const/16 v45, 0x4b

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v26

    .line 1360
    .local v26, datePositionY:I
    const/16 v45, 0x1

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setFakeBoldText(Z)V

    .line 1361
    const/high16 v45, 0x3f00

    const/high16 v46, 0x3f80

    const/high16 v47, 0x3f80

    const/high16 v48, -0x100

    move-object/from16 v0, v28

    move/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move/from16 v4, v48

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 1362
    const v45, 0x7f05000a

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v45

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1363
    const v45, 0x7f060063

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v45

    move/from16 v0, v45

    int-to-float v0, v0

    move/from16 v45, v0

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1364
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDateStr:Ljava/lang/String;

    move-object/from16 v45, v0

    move/from16 v0, v25

    int-to-float v0, v0

    move/from16 v46, v0

    move/from16 v0, v26

    int-to-float v0, v0

    move/from16 v47, v0

    move-object v0, v12

    move-object/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move-object/from16 v4, v28

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1366
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontGadgetList:Ljava/util/List;

    move-object/from16 v45, v0

    if-eqz v45, :cond_1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontGadgetList:Ljava/util/List;

    move-object/from16 v45, v0

    invoke-interface/range {v45 .. v45}, Ljava/util/List;->clear()V

    .line 1368
    :cond_1
    const/16 v45, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v37

    .line 1369
    .local v37, sideMargin:I
    const/16 v45, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v43

    .line 1372
    .local v43, topMargin:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v45, v0

    invoke-virtual/range {v45 .. v45}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v45

    const v46, 0x7f020058

    invoke-static/range {v45 .. v46}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v35

    .line 1373
    .local v35, settingIcon:Landroid/graphics/Bitmap;
    if-eqz v35, :cond_2

    .line 1374
    new-instance v36, Landroid/graphics/Rect;

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelWidthInPixels:I

    move/from16 v45, v0

    move/from16 v0, v37

    int-to-float v0, v0

    move/from16 v46, v0

    const/high16 v47, 0x3fc0

    mul-float v46, v46, v47

    move/from16 v0, v46

    float-to-int v0, v0

    move/from16 v46, v0

    sub-int v45, v45, v46

    invoke-virtual/range {v35 .. v35}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v46

    sub-int v45, v45, v46

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelWidthInPixels:I

    move/from16 v46, v0

    move/from16 v0, v37

    int-to-float v0, v0

    move/from16 v47, v0

    const/high16 v48, 0x3fc0

    mul-float v47, v47, v48

    move/from16 v0, v47

    float-to-int v0, v0

    move/from16 v47, v0

    sub-int v46, v46, v47

    invoke-virtual/range {v35 .. v35}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v47

    add-int v47, v47, v43

    move-object/from16 v0, v36

    move/from16 v1, v45

    move/from16 v2, v43

    move/from16 v3, v46

    move/from16 v4, v47

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1379
    .local v36, settingIconRect:Landroid/graphics/Rect;
    new-instance v45, Landroid/graphics/Rect;

    const/16 v46, 0x0

    const/16 v47, 0x0

    invoke-virtual/range {v35 .. v35}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v48

    invoke-virtual/range {v35 .. v35}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v49

    invoke-direct/range {v45 .. v49}, Landroid/graphics/Rect;-><init>(IIII)V

    const/16 v46, 0x0

    move-object v0, v12

    move-object/from16 v1, v35

    move-object/from16 v2, v45

    move-object/from16 v3, v36

    move-object/from16 v4, v46

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1381
    const/16 v45, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move/from16 v46, v0

    div-int/lit8 v47, v43, 0x2

    add-int v46, v46, v47

    move-object/from16 v0, v36

    move/from16 v1, v45

    move/from16 v2, v46

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->offset(II)V

    .line 1382
    move/from16 v0, v37

    neg-int v0, v0

    move/from16 v45, v0

    div-int/lit8 v45, v45, 0x2

    move/from16 v0, v43

    neg-int v0, v0

    move/from16 v46, v0

    div-int/lit8 v46, v46, 0x2

    move-object/from16 v0, v36

    move/from16 v1, v45

    move/from16 v2, v46

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->inset(II)V

    .line 1383
    new-instance v34, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object/from16 v0, v34

    move-object/from16 v1, p0

    move-object/from16 v2, v36

    move-object/from16 v3, v36

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 1384
    .local v34, settingGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorTwistToBack:Ljava/lang/Runnable;

    move-object/from16 v45, v0

    move-object/from16 v0, v34

    move-object/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 1385
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontGadgetList:Ljava/util/List;

    move-object/from16 v45, v0

    move-object/from16 v0, v45

    move-object/from16 v1, v34

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1388
    .end local v34           #settingGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v36           #settingIconRect:Landroid/graphics/Rect;
    :cond_2
    if-nez p1, :cond_7

    .line 1390
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mSideEndMarginInPixels:I

    move/from16 v39, v0

    .line 1391
    .local v39, tempPositionX:I
    const/16 v45, 0x32

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v40

    .line 1392
    .local v40, tempPositionY:I
    const v45, 0x7f05000a

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v45

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1393
    const v45, 0x7f060061

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v45

    move/from16 v0, v45

    int-to-float v0, v0

    move/from16 v45, v0

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1395
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v45, v0

    if-eqz v45, :cond_3

    .line 1396
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v45, v0

    if-nez v45, :cond_6

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v45, v0

    invoke-virtual/range {v45 .. v45}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getCurrentCondition()Lcom/nemustech/regina/widgets/clock/WeatherData$CurrentCondition;

    move-result-object v45

    invoke-virtual/range {v45 .. v45}, Lcom/nemustech/regina/widgets/clock/WeatherData$CurrentCondition;->getTemp()I

    move-result v45

    move/from16 v38, v45

    .line 1397
    .local v38, temp:I
    :goto_1
    new-instance v45, Ljava/lang/StringBuilder;

    invoke-direct/range {v45 .. v45}, Ljava/lang/StringBuilder;-><init>()V

    const-string v46, "%d"

    invoke-virtual/range {v45 .. v46}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v45

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v46, v0

    move-object/from16 v0, p0

    move/from16 v1, v46

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTempUnitString(I)Ljava/lang/String;

    move-result-object v46

    invoke-virtual/range {v45 .. v46}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v45

    invoke-virtual/range {v45 .. v45}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v45

    const/16 v46, 0x1

    move/from16 v0, v46

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v46, v0

    const/16 v47, 0x0

    invoke-static/range {v38 .. v38}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v48

    aput-object v48, v46, v47

    invoke-static/range {v45 .. v46}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v45

    move/from16 v0, v39

    int-to-float v0, v0

    move/from16 v46, v0

    move/from16 v0, v40

    int-to-float v0, v0

    move/from16 v47, v0

    move-object v0, v12

    move-object/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move-object/from16 v4, v28

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1401
    .end local v38           #temp:I
    :cond_3
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mSideEndMarginInPixels:I

    move/from16 v45, v0

    const/16 v46, 0x64

    move-object/from16 v0, p0

    move/from16 v1, v46

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v46

    add-int v18, v45, v46

    .line 1402
    .local v18, cityPositionX:I
    const/16 v45, 0x30

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v19

    .line 1404
    .local v19, cityPositionY:I
    const/16 v45, 0xc8

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v14

    .line 1406
    .local v14, cityMaxLength:I
    const v45, 0x7f05000d

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v45

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1407
    const v45, 0x7f060064

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v45

    move/from16 v0, v45

    int-to-float v0, v0

    move/from16 v45, v0

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1408
    sget-object v45, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v28

    move-object/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1410
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    move-object/from16 v45, v0

    if-eqz v45, :cond_4

    .line 1411
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    move-object/from16 v45, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v45

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getOnlyCityName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    .line 1412
    .local v15, cityName:Ljava/lang/String;
    move-object v0, v15

    move-object/from16 v1, v28

    move v2, v14

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RUtils;->getEllipsisString(Ljava/lang/String;Landroid/graphics/Paint;I)Ljava/lang/String;

    move-result-object v27

    .line 1414
    .local v27, filteredCityName:Ljava/lang/String;
    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v45, v0

    move/from16 v0, v19

    int-to-float v0, v0

    move/from16 v46, v0

    move-object v0, v12

    move-object/from16 v1, v27

    move/from16 v2, v45

    move/from16 v3, v46

    move-object/from16 v4, v28

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1415
    new-instance v42, Landroid/graphics/Rect;

    invoke-direct/range {v42 .. v42}, Landroid/graphics/Rect;-><init>()V

    .line 1416
    .local v42, textRect:Landroid/graphics/Rect;
    const/16 v45, 0x0

    invoke-virtual/range {v27 .. v27}, Ljava/lang/String;->length()I

    move-result v46

    move-object/from16 v0, v28

    move-object/from16 v1, v27

    move/from16 v2, v45

    move/from16 v3, v46

    move-object/from16 v4, v42

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 1418
    invoke-virtual/range {v28 .. v28}, Landroid/graphics/Paint;->ascent()F

    move-result v45

    move/from16 v0, v45

    neg-float v0, v0

    move/from16 v45, v0

    move/from16 v0, v45

    float-to-double v0, v0

    move-wide/from16 v45, v0

    invoke-static/range {v45 .. v46}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v45

    move-wide/from16 v0, v45

    double-to-int v0, v0

    move/from16 v16, v0

    .line 1420
    .local v16, cityNameAscent:I
    new-instance v17, Landroid/graphics/Rect;

    sub-int v45, v18, v37

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move/from16 v46, v0

    add-int v46, v46, v43

    invoke-virtual/range {v42 .. v42}, Landroid/graphics/Rect;->width()I

    move-result v47

    add-int v47, v47, v18

    add-int v47, v47, v37

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move/from16 v48, v0

    add-int v48, v48, v19

    div-int/lit8 v49, v16, 0x2

    add-int v48, v48, v49

    move-object/from16 v0, v17

    move/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move/from16 v4, v48

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1425
    .local v17, cityNameRect:Landroid/graphics/Rect;
    new-instance v13, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object v0, v13

    move-object/from16 v1, p0

    move-object/from16 v2, v17

    move-object/from16 v3, v17

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 1426
    .local v13, cityGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorRunWeatherApp:Ljava/lang/Runnable;

    move-object/from16 v45, v0

    move-object v0, v13

    move-object/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 1427
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontGadgetList:Ljava/util/List;

    move-object/from16 v45, v0

    move-object/from16 v0, v45

    move-object v1, v13

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1430
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v45, v0

    invoke-virtual/range {v45 .. v45}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v45

    const v46, 0x7f020055

    invoke-static/range {v45 .. v46}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v31

    .line 1431
    .local v31, refreshIcon:Landroid/graphics/Bitmap;
    if-eqz v31, :cond_4

    .line 1432
    const/16 v45, 0x2d

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v32

    .line 1433
    .local v32, refreshIconOffsetY:I
    new-instance v33, Landroid/graphics/Rect;

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelWidthInPixels:I

    move/from16 v45, v0

    move/from16 v0, v37

    int-to-float v0, v0

    move/from16 v46, v0

    const/high16 v47, 0x3fc0

    mul-float v46, v46, v47

    move/from16 v0, v46

    float-to-int v0, v0

    move/from16 v46, v0

    sub-int v45, v45, v46

    invoke-virtual/range {v31 .. v31}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v46

    sub-int v45, v45, v46

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelWidthInPixels:I

    move/from16 v46, v0

    move/from16 v0, v37

    int-to-float v0, v0

    move/from16 v47, v0

    const/high16 v48, 0x3fc0

    mul-float v47, v47, v48

    move/from16 v0, v47

    float-to-int v0, v0

    move/from16 v47, v0

    sub-int v46, v46, v47

    invoke-virtual/range {v31 .. v31}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v47

    add-int v47, v47, v32

    move-object/from16 v0, v33

    move/from16 v1, v45

    move/from16 v2, v32

    move/from16 v3, v46

    move/from16 v4, v47

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1438
    .local v33, refreshIconRect:Landroid/graphics/Rect;
    new-instance v45, Landroid/graphics/Rect;

    const/16 v46, 0x0

    const/16 v47, 0x0

    invoke-virtual/range {v31 .. v31}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v48

    invoke-virtual/range {v31 .. v31}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v49

    invoke-direct/range {v45 .. v49}, Landroid/graphics/Rect;-><init>(IIII)V

    const/16 v46, 0x0

    move-object v0, v12

    move-object/from16 v1, v31

    move-object/from16 v2, v45

    move-object/from16 v3, v33

    move-object/from16 v4, v46

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1442
    const/16 v45, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move/from16 v46, v0

    div-int/lit8 v47, v43, 0x2

    add-int v46, v46, v47

    move-object/from16 v0, v33

    move/from16 v1, v45

    move/from16 v2, v46

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->offset(II)V

    .line 1443
    move/from16 v0, v37

    neg-int v0, v0

    move/from16 v45, v0

    div-int/lit8 v45, v45, 0x2

    move/from16 v0, v43

    neg-int v0, v0

    move/from16 v46, v0

    div-int/lit8 v46, v46, 0x2

    move-object/from16 v0, v33

    move/from16 v1, v45

    move/from16 v2, v46

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->inset(II)V

    .line 1445
    new-instance v30, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object/from16 v0, v30

    move-object/from16 v1, p0

    move-object/from16 v2, v33

    move-object/from16 v3, v33

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 1446
    .local v30, refreshGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorRefreshWeather:Ljava/lang/Runnable;

    move-object/from16 v45, v0

    move-object/from16 v0, v30

    move-object/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 1447
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontGadgetList:Ljava/util/List;

    move-object/from16 v45, v0

    move-object/from16 v0, v45

    move-object/from16 v1, v30

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 1476
    .end local v13           #cityGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v14           #cityMaxLength:I
    .end local v15           #cityName:Ljava/lang/String;
    .end local v16           #cityNameAscent:I
    .end local v17           #cityNameRect:Landroid/graphics/Rect;
    .end local v18           #cityPositionX:I
    .end local v19           #cityPositionY:I
    .end local v27           #filteredCityName:Ljava/lang/String;
    .end local v30           #refreshGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v31           #refreshIcon:Landroid/graphics/Bitmap;
    .end local v32           #refreshIconOffsetY:I
    .end local v33           #refreshIconRect:Landroid/graphics/Rect;
    .end local v39           #tempPositionX:I
    .end local v40           #tempPositionY:I
    .end local v42           #textRect:Landroid/graphics/Rect;
    :cond_4
    :goto_2
    monitor-exit v44

    return-object v11

    .line 1338
    .end local v25           #datePositionX:I
    .end local v26           #datePositionY:I
    .end local v35           #settingIcon:Landroid/graphics/Bitmap;
    .end local v37           #sideMargin:I
    .end local v43           #topMargin:I
    :cond_5
    const-string v45, "PM"

    move-object/from16 v5, v45

    goto/16 :goto_0

    .line 1396
    .restart local v25       #datePositionX:I
    .restart local v26       #datePositionY:I
    .restart local v35       #settingIcon:Landroid/graphics/Bitmap;
    .restart local v37       #sideMargin:I
    .restart local v39       #tempPositionX:I
    .restart local v40       #tempPositionY:I
    .restart local v43       #topMargin:I
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v45, v0

    invoke-virtual/range {v45 .. v45}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getCurrentCondition()Lcom/nemustech/regina/widgets/clock/WeatherData$CurrentCondition;

    move-result-object v45

    invoke-virtual/range {v45 .. v45}, Lcom/nemustech/regina/widgets/clock/WeatherData$CurrentCondition;->getTemp()I

    move-result v45

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertFahrenheitToCelsius(I)I

    move-result v45

    move/from16 v38, v45

    goto/16 :goto_1

    .line 1455
    .end local v39           #tempPositionX:I
    .end local v40           #tempPositionY:I
    :cond_7
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mSideEndMarginInPixels:I

    move/from16 v45, v0

    const/16 v46, 0x5

    move-object/from16 v0, p0

    move/from16 v1, v46

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v46

    add-int v22, v45, v46

    .line 1456
    .local v22, contentPositionX:I
    const/16 v45, 0x30

    move-object/from16 v0, p0

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v23

    .line 1457
    .local v23, contentPositionY:I
    const v45, 0x7f05000d

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v45

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1458
    const v45, 0x7f060063

    move-object/from16 v0, v29

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionI(I)I

    move-result v45

    move/from16 v0, v45

    int-to-float v0, v0

    move/from16 v45, v0

    move-object/from16 v0, v28

    move/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1459
    sget-object v45, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v28

    move-object/from16 v1, v45

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1460
    move/from16 v0, v22

    int-to-float v0, v0

    move/from16 v45, v0

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v46, v0

    move-object v0, v12

    move-object/from16 v1, p1

    move/from16 v2, v45

    move/from16 v3, v46

    move-object/from16 v4, v28

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1462
    invoke-virtual/range {v28 .. v28}, Landroid/graphics/Paint;->ascent()F

    move-result v45

    move/from16 v0, v45

    neg-float v0, v0

    move/from16 v45, v0

    move/from16 v0, v45

    float-to-double v0, v0

    move-wide/from16 v45, v0

    invoke-static/range {v45 .. v46}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v45

    move-wide/from16 v0, v45

    double-to-int v0, v0

    move/from16 v20, v0

    .line 1464
    .local v20, contentAscent:I
    new-instance v42, Landroid/graphics/Rect;

    invoke-direct/range {v42 .. v42}, Landroid/graphics/Rect;-><init>()V

    .line 1465
    .restart local v42       #textRect:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTextString:Ljava/lang/String;

    move-object/from16 v45, v0

    const/16 v46, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTextString:Ljava/lang/String;

    move-object/from16 v47, v0

    invoke-virtual/range {v47 .. v47}, Ljava/lang/String;->length()I

    move-result v47

    move-object/from16 v0, v28

    move-object/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move-object/from16 v4, v42

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    .line 1467
    new-instance v24, Landroid/graphics/Rect;

    sub-int v45, v22, v37

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move/from16 v46, v0

    add-int v46, v46, v43

    invoke-virtual/range {v42 .. v42}, Landroid/graphics/Rect;->width()I

    move-result v47

    add-int v47, v47, v22

    add-int v47, v47, v37

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move/from16 v48, v0

    add-int v48, v48, v23

    div-int/lit8 v49, v20, 0x2

    add-int v48, v48, v49

    move-object/from16 v0, v24

    move/from16 v1, v45

    move/from16 v2, v46

    move/from16 v3, v47

    move/from16 v4, v48

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1472
    .local v24, contentRect:Landroid/graphics/Rect;
    new-instance v21, Lcom/nemustech/regina/ElementReginaWidget$Gadget;

    move-object/from16 v0, v21

    move-object/from16 v1, p0

    move-object/from16 v2, v24

    move-object/from16 v3, v24

    invoke-direct {v0, v1, v2, v3}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;-><init>(Lcom/nemustech/regina/ElementReginaWidget;Landroid/graphics/Rect;Landroid/graphics/Rect;)V

    .line 1473
    .local v21, contentGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorRunClockApp:Ljava/lang/Runnable;

    move-object/from16 v45, v0

    move-object/from16 v0, v21

    move-object/from16 v1, v45

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ElementReginaWidget$Gadget;->setActor(Ljava/lang/Runnable;)V

    .line 1474
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontGadgetList:Ljava/util/List;

    move-object/from16 v45, v0

    move-object/from16 v0, v45

    move-object/from16 v1, v21

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_2

    .line 1477
    .end local v6           #ampmBound:Landroid/graphics/Rect;
    .end local v8           #ampmPositionX:I
    .end local v9           #ampmPositionY:I
    .end local v11           #bmp:Landroid/graphics/Bitmap;
    .end local v12           #canvas:Landroid/graphics/Canvas;
    .end local v20           #contentAscent:I
    .end local v21           #contentGadget:Lcom/nemustech/regina/ElementReginaWidget$Gadget;
    .end local v22           #contentPositionX:I
    .end local v23           #contentPositionY:I
    .end local v24           #contentRect:Landroid/graphics/Rect;
    .end local v25           #datePositionX:I
    .end local v26           #datePositionY:I
    .end local v28           #paint:Landroid/graphics/Paint;
    .end local v29           #rc:Lcom/nemustech/regina/ResourceCare;
    .end local v35           #settingIcon:Landroid/graphics/Bitmap;
    .end local v37           #sideMargin:I
    .end local v42           #textRect:Landroid/graphics/Rect;
    .end local v43           #topMargin:I
    :catchall_0
    move-exception v45

    monitor-exit v44
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v45
.end method

.method private createMiddlePanelBitmap(I)Landroid/graphics/Bitmap;
    .locals 42
    .parameter "faceIndex"

    .prologue
    .line 1523
    const-class v36, Ljava/lang/Object;

    monitor-enter v36

    .line 1524
    :try_start_0
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastDisplayState:I

    move/from16 v37, v0

    const/16 v38, 0x1

    move/from16 v0, v37

    move/from16 v1, v38

    if-ne v0, v1, :cond_2

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    move/from16 v37, v0

    move/from16 v11, v37

    .line 1528
    .local v11, currentHeight:I
    :goto_0
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    move/from16 v37, v0

    add-int v22, v37, v11

    .line 1529
    .local v22, offsetY:I
    new-instance v27, Landroid/graphics/Rect;

    const/16 v37, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    move/from16 v38, v0

    sub-int v38, v38, v22

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    move/from16 v39, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    move/from16 v40, v0

    sub-int v40, v40, v22

    add-int v40, v40, v11

    move-object/from16 v0, v27

    move/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move/from16 v4, v40

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1532
    .local v27, rect:Landroid/graphics/Rect;
    new-instance v10, Landroid/graphics/Rect;

    const/16 v37, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    move/from16 v38, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    move/from16 v39, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    move/from16 v40, v0

    add-int v39, v39, v40

    sub-int v38, v38, v39

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    move/from16 v39, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    move/from16 v40, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    move/from16 v41, v0

    sub-int v40, v40, v41

    move-object v0, v10

    move/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move/from16 v4, v40

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1536
    .local v10, clipRect:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v37, v0

    invoke-virtual/range {v37 .. v37}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v37

    const v38, 0x7f020026

    invoke-static/range {v37 .. v38}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v7

    .line 1537
    .local v7, bgImage:Landroid/graphics/Bitmap;
    invoke-virtual/range {v27 .. v27}, Landroid/graphics/Rect;->width()I

    move-result v35

    .line 1538
    .local v35, width:I
    invoke-virtual/range {v27 .. v27}, Landroid/graphics/Rect;->height()I

    move-result v17

    .line 1539
    .local v17, height:I
    sget-object v37, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    move/from16 v0, v35

    move/from16 v1, v17

    move-object/from16 v2, v37

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v25

    .line 1540
    .local v25, partialBmp:Landroid/graphics/Bitmap;
    new-instance v9, Landroid/graphics/Canvas;

    move-object v0, v9

    move-object/from16 v1, v25

    invoke-direct {v0, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1541
    .local v9, canvas:Landroid/graphics/Canvas;
    const/16 v37, 0x0

    const/16 v38, 0xff

    const/16 v39, 0xff

    const/16 v40, 0xff

    move-object v0, v9

    move/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move/from16 v4, v40

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawARGB(IIII)V

    .line 1542
    if-eqz v7, :cond_0

    .line 1543
    new-instance v37, Landroid/graphics/Rect;

    const/16 v38, 0x0

    const/16 v39, 0x0

    invoke-virtual/range {v27 .. v27}, Landroid/graphics/Rect;->width()I

    move-result v40

    invoke-virtual/range {v27 .. v27}, Landroid/graphics/Rect;->height()I

    move-result v41

    invoke-direct/range {v37 .. v41}, Landroid/graphics/Rect;-><init>(IIII)V

    const/16 v38, 0x0

    move-object v0, v9

    move-object v1, v7

    move-object v2, v10

    move-object/from16 v3, v37

    move-object/from16 v4, v38

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1544
    invoke-virtual {v7}, Landroid/graphics/Bitmap;->recycle()V

    .line 1547
    :cond_0
    const/16 v37, 0x1

    move/from16 v0, p1

    move/from16 v1, v37

    if-eq v0, v1, :cond_1

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mShowForecast:Z

    move/from16 v37, v0

    if-nez v37, :cond_3

    .line 1548
    :cond_1
    monitor-exit v36

    .line 1621
    :goto_1
    return-object v25

    .line 1524
    .end local v7           #bgImage:Landroid/graphics/Bitmap;
    .end local v9           #canvas:Landroid/graphics/Canvas;
    .end local v10           #clipRect:Landroid/graphics/Rect;
    .end local v11           #currentHeight:I
    .end local v17           #height:I
    .end local v22           #offsetY:I
    .end local v25           #partialBmp:Landroid/graphics/Bitmap;
    .end local v27           #rect:Landroid/graphics/Rect;
    .end local v35           #width:I
    :cond_2
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelUnfoldedHeightInPixels:I

    move/from16 v37, v0

    move/from16 v11, v37

    goto/16 :goto_0

    .line 1550
    .restart local v7       #bgImage:Landroid/graphics/Bitmap;
    .restart local v9       #canvas:Landroid/graphics/Canvas;
    .restart local v10       #clipRect:Landroid/graphics/Rect;
    .restart local v11       #currentHeight:I
    .restart local v17       #height:I
    .restart local v22       #offsetY:I
    .restart local v25       #partialBmp:Landroid/graphics/Bitmap;
    .restart local v27       #rect:Landroid/graphics/Rect;
    .restart local v35       #width:I
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v37, v0

    if-eqz v37, :cond_8

    .line 1551
    invoke-direct/range {p0 .. p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCalendarTimeZoneApplied()Ljava/util/Calendar;

    move-result-object v8

    .line 1552
    .local v8, c:Ljava/util/Calendar;
    const/16 v37, 0x4c

    move-object/from16 v0, p0

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v16

    .line 1553
    .local v16, forecastPanelWidthInPixels:I
    const/16 v37, 0x5a

    move-object/from16 v0, p0

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v15

    .line 1556
    .local v15, forecastPanelHeightInPixels:I
    const/16 v37, 0x6

    move-object/from16 v0, p0

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v31

    .line 1557
    .local v31, startY:I
    const/16 v37, 0x14

    move-object/from16 v0, p0

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v28

    .line 1559
    .local v28, sidePadding:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v37, v0

    invoke-static/range {v37 .. v37}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v26

    .line 1560
    .local v26, rc:Lcom/nemustech/regina/ResourceCare;
    new-instance v24, Landroid/graphics/Paint;

    invoke-direct/range {v24 .. v24}, Landroid/graphics/Paint;-><init>()V

    .line 1561
    .local v24, paint:Landroid/graphics/Paint;
    const/16 v37, 0x1

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 1562
    const/high16 v37, 0x3f00

    const/high16 v38, 0x3f80

    const/high16 v39, 0x3f80

    const/high16 v40, -0x100

    move-object/from16 v0, v24

    move/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move/from16 v4, v40

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 1564
    const/16 v18, 0x0

    .local v18, i:I
    :goto_2
    const/16 v37, 0x4

    move/from16 v0, v18

    move/from16 v1, v37

    if-ge v0, v1, :cond_8

    .line 1565
    const/16 v37, 0x5

    const/16 v38, 0x1

    move-object v0, v8

    move/from16 v1, v37

    move/from16 v2, v38

    invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->add(II)V

    .line 1566
    const/16 v37, 0x1c

    move-object/from16 v0, p0

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v37

    const/high16 v38, 0x3f00

    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v39, v0

    mul-float v38, v38, v39

    move/from16 v0, v38

    float-to-int v0, v0

    move/from16 v38, v0

    move-object/from16 v0, p0

    move/from16 v1, v38

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v38

    sub-int v30, v37, v38

    .line 1567
    .local v30, startX:I
    const/16 v37, 0x2

    move-object v0, v8

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v37

    add-int/lit8 v21, v37, 0x1

    .line 1568
    .local v21, month:I
    const/16 v37, 0x5

    move-object v0, v8

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v12

    .line 1569
    .local v12, date:I
    const-string v37, "E"

    move-object/from16 v0, v37

    move-object v1, v8

    invoke-static {v0, v1}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Calendar;)Ljava/lang/CharSequence;

    move-result-object v13

    check-cast v13, Ljava/lang/String;

    .line 1570
    .local v13, day:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v37, v0

    add-int/lit8 v38, v18, 0x1

    invoke-virtual/range {v37 .. v38}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getForeCast(I)Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;

    move-result-object v37

    invoke-virtual/range {v37 .. v37}, Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;->getWeather()I

    move-result v34

    .line 1571
    .local v34, weather:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v37, v0

    add-int/lit8 v38, v18, 0x1

    invoke-virtual/range {v37 .. v38}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getForeCast(I)Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;

    move-result-object v37

    invoke-virtual/range {v37 .. v37}, Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;->getTempHigh()I

    move-result v32

    .line 1572
    .local v32, tempHigh:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-object/from16 v37, v0

    add-int/lit8 v38, v18, 0x1

    invoke-virtual/range {v37 .. v38}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getForeCast(I)Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;

    move-result-object v37

    invoke-virtual/range {v37 .. v37}, Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;->getTempLow()I

    move-result v33

    .line 1574
    .local v33, tempLow:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v37, v0

    invoke-static/range {v34 .. v34}, Lcom/nemustech/regina/widgets/clock/Weather;->getCode(I)I

    move-result v38

    invoke-static/range {v38 .. v38}, Lcom/nemustech/regina/widgets/clock/Weather;->getForecastResourceId(I)I

    move-result v38

    invoke-static/range {v37 .. v38}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v20

    .line 1575
    .local v20, iconBitmapForSize:Landroid/graphics/Bitmap;
    if-eqz v20, :cond_4

    .line 1576
    new-instance v29, Landroid/graphics/Rect;

    const/16 v37, 0x0

    const/16 v38, 0x0

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v39

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v40

    move-object/from16 v0, v29

    move/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move/from16 v4, v40

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1577
    .local v29, srcRect:Landroid/graphics/Rect;
    new-instance v14, Landroid/graphics/Rect;

    add-int v37, v16, v28

    mul-int v37, v37, v18

    add-int v37, v37, v30

    const/16 v38, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v38

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v38

    add-int v38, v38, v31

    add-int v39, v16, v28

    mul-int v39, v39, v18

    add-int v39, v39, v30

    add-int v39, v39, v16

    add-int v40, v31, v15

    const/16 v41, 0xa

    move-object/from16 v0, p0

    move/from16 v1, v41

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v41

    sub-int v40, v40, v41

    move-object v0, v14

    move/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move/from16 v4, v40

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1581
    .local v14, destRect:Landroid/graphics/Rect;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v37, v0

    invoke-static/range {v34 .. v34}, Lcom/nemustech/regina/widgets/clock/Weather;->getCode(I)I

    move-result v38

    invoke-static/range {v38 .. v38}, Lcom/nemustech/regina/widgets/clock/Weather;->getForecastResourceId(I)I

    move-result v38

    invoke-static/range {v37 .. v38}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v19

    .line 1582
    .local v19, iconBitmap:Landroid/graphics/Bitmap;
    if-eqz v19, :cond_4

    .line 1583
    const/16 v37, 0x0

    move-object v0, v9

    move-object/from16 v1, v19

    move-object/from16 v2, v29

    move-object v3, v14

    move-object/from16 v4, v37

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1584
    invoke-virtual/range {v19 .. v19}, Landroid/graphics/Bitmap;->recycle()V

    .line 1589
    .end local v14           #destRect:Landroid/graphics/Rect;
    .end local v19           #iconBitmap:Landroid/graphics/Bitmap;
    .end local v29           #srcRect:Landroid/graphics/Rect;
    :cond_4
    const/high16 v37, 0x3f80

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextScaleX(F)V

    .line 1590
    const v37, 0x7f05000a

    move-object/from16 v0, v26

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v37

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1591
    const v37, 0x7f060065

    move-object/from16 v0, v26

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionF(I)F

    move-result v37

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1592
    sget-object v37, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v24

    move-object/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1594
    invoke-virtual {v13}, Ljava/lang/String;->length()I

    move-result v37

    const/16 v38, 0x2

    move/from16 v0, v37

    move/from16 v1, v38

    if-le v0, v1, :cond_5

    .line 1595
    const/16 v37, 0x0

    const/16 v38, 0x2

    move-object v0, v13

    move/from16 v1, v37

    move/from16 v2, v38

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v13

    .line 1597
    :cond_5
    new-instance v37, Ljava/lang/StringBuilder;

    invoke-direct/range {v37 .. v37}, Ljava/lang/StringBuilder;-><init>()V

    const-string v38, "%d/%d "

    invoke-virtual/range {v37 .. v38}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v37

    move-object/from16 v0, v37

    move-object v1, v13

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v37

    invoke-virtual/range {v37 .. v37}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v37

    const/16 v38, 0x2

    move/from16 v0, v38

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v38, v0

    const/16 v39, 0x0

    invoke-static/range {v21 .. v21}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v40

    aput-object v40, v38, v39

    const/16 v39, 0x1

    invoke-static {v12}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v40

    aput-object v40, v38, v39

    invoke-static/range {v37 .. v38}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v37

    add-int v38, v16, v28

    mul-int v38, v38, v18

    add-int v38, v38, v30

    div-int/lit8 v39, v16, 0x2

    add-int v38, v38, v39

    move/from16 v0, v38

    int-to-float v0, v0

    move/from16 v38, v0

    const/16 v39, 0x12

    move-object/from16 v0, p0

    move/from16 v1, v39

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v39

    add-int v39, v39, v31

    move/from16 v0, v39

    int-to-float v0, v0

    move/from16 v39, v0

    move-object v0, v9

    move-object/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move-object/from16 v4, v24

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1600
    const/16 v37, 0x3

    move-object/from16 v0, p0

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v23

    .line 1601
    .local v23, padding:I
    const v37, 0x3f4ccccd

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextScaleX(F)V

    .line 1602
    const v37, 0x7f060066

    move-object/from16 v0, v26

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionF(I)F

    move-result v37

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1603
    sget-object v37, Landroid/graphics/Paint$Align;->RIGHT:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v24

    move-object/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1604
    const v37, 0x7f05000c

    move-object/from16 v0, v26

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v37

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1606
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v37, v0

    if-nez v37, :cond_6

    move/from16 v6, v33

    .line 1607
    .local v6, FilteredTempLow:I
    :goto_3
    new-instance v37, Ljava/lang/StringBuilder;

    invoke-direct/range {v37 .. v37}, Ljava/lang/StringBuilder;-><init>()V

    const-string v38, "%d"

    invoke-virtual/range {v37 .. v38}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v37

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v38, v0

    move-object/from16 v0, p0

    move/from16 v1, v38

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTempUnitString(I)Ljava/lang/String;

    move-result-object v38

    invoke-virtual/range {v37 .. v38}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v37

    invoke-virtual/range {v37 .. v37}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v37

    const/16 v38, 0x1

    move/from16 v0, v38

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v38, v0

    const/16 v39, 0x0

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v40

    aput-object v40, v38, v39

    invoke-static/range {v37 .. v38}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v37

    add-int v38, v16, v28

    mul-int v38, v38, v18

    add-int v38, v38, v30

    div-int/lit8 v39, v16, 0x2

    add-int v38, v38, v39

    sub-int v38, v38, v23

    move/from16 v0, v38

    int-to-float v0, v0

    move/from16 v38, v0

    add-int v39, v31, v15

    move/from16 v0, v39

    int-to-float v0, v0

    move/from16 v39, v0

    move-object v0, v9

    move-object/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move-object/from16 v4, v24

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1609
    sget-object v37, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v24

    move-object/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1610
    const v37, 0x7f05000a

    move-object/from16 v0, v26

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v37

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1611
    const-string v37, "/"

    add-int v38, v16, v28

    mul-int v38, v38, v18

    add-int v38, v38, v30

    div-int/lit8 v39, v16, 0x2

    add-int v38, v38, v39

    move/from16 v0, v38

    int-to-float v0, v0

    move/from16 v38, v0

    add-int v39, v31, v15

    move/from16 v0, v39

    int-to-float v0, v0

    move/from16 v39, v0

    move-object v0, v9

    move-object/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move-object/from16 v4, v24

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1613
    sget-object v37, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    move-object/from16 v0, v24

    move-object/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1614
    const v37, 0x7f05000b

    move-object/from16 v0, v26

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getColor(I)I

    move-result v37

    move-object/from16 v0, v24

    move/from16 v1, v37

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1616
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v37, v0

    if-nez v37, :cond_7

    move/from16 v5, v32

    .line 1617
    .local v5, FilteredTempHigh:I
    :goto_4
    new-instance v37, Ljava/lang/StringBuilder;

    invoke-direct/range {v37 .. v37}, Ljava/lang/StringBuilder;-><init>()V

    const-string v38, "%d"

    invoke-virtual/range {v37 .. v38}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v37

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    move/from16 v38, v0

    move-object/from16 v0, p0

    move/from16 v1, v38

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTempUnitString(I)Ljava/lang/String;

    move-result-object v38

    invoke-virtual/range {v37 .. v38}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v37

    invoke-virtual/range {v37 .. v37}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v37

    const/16 v38, 0x1

    move/from16 v0, v38

    new-array v0, v0, [Ljava/lang/Object;

    move-object/from16 v38, v0

    const/16 v39, 0x0

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v40

    aput-object v40, v38, v39

    invoke-static/range {v37 .. v38}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v37

    add-int v38, v16, v28

    mul-int v38, v38, v18

    add-int v38, v38, v30

    div-int/lit8 v39, v16, 0x2

    add-int v38, v38, v39

    add-int v38, v38, v23

    move/from16 v0, v38

    int-to-float v0, v0

    move/from16 v38, v0

    add-int v39, v31, v15

    move/from16 v0, v39

    int-to-float v0, v0

    move/from16 v39, v0

    move-object v0, v9

    move-object/from16 v1, v37

    move/from16 v2, v38

    move/from16 v3, v39

    move-object/from16 v4, v24

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1564
    add-int/lit8 v18, v18, 0x1

    goto/16 :goto_2

    .line 1606
    .end local v5           #FilteredTempHigh:I
    .end local v6           #FilteredTempLow:I
    :cond_6
    move-object/from16 v0, p0

    move/from16 v1, v33

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertFahrenheitToCelsius(I)I

    move-result v37

    move/from16 v6, v37

    goto/16 :goto_3

    .line 1616
    .restart local v6       #FilteredTempLow:I
    :cond_7
    move-object/from16 v0, p0

    move/from16 v1, v32

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertFahrenheitToCelsius(I)I

    move-result v37

    move/from16 v5, v37

    goto :goto_4

    .line 1621
    .end local v6           #FilteredTempLow:I
    .end local v8           #c:Ljava/util/Calendar;
    .end local v12           #date:I
    .end local v13           #day:Ljava/lang/String;
    .end local v15           #forecastPanelHeightInPixels:I
    .end local v16           #forecastPanelWidthInPixels:I
    .end local v18           #i:I
    .end local v20           #iconBitmapForSize:Landroid/graphics/Bitmap;
    .end local v21           #month:I
    .end local v23           #padding:I
    .end local v24           #paint:Landroid/graphics/Paint;
    .end local v26           #rc:Lcom/nemustech/regina/ResourceCare;
    .end local v28           #sidePadding:I
    .end local v30           #startX:I
    .end local v31           #startY:I
    .end local v32           #tempHigh:I
    .end local v33           #tempLow:I
    .end local v34           #weather:I
    :cond_8
    monitor-exit v36

    goto/16 :goto_1

    .line 1622
    .end local v7           #bgImage:Landroid/graphics/Bitmap;
    .end local v9           #canvas:Landroid/graphics/Canvas;
    .end local v10           #clipRect:Landroid/graphics/Rect;
    .end local v11           #currentHeight:I
    .end local v17           #height:I
    .end local v22           #offsetY:I
    .end local v25           #partialBmp:Landroid/graphics/Bitmap;
    .end local v27           #rect:Landroid/graphics/Rect;
    .end local v35           #width:I
    :catchall_0
    move-exception v37

    monitor-exit v36
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v37
.end method

.method private createMorphingBackgroundPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 9

    .prologue
    const/4 v8, 0x0

    const/4 v7, 0x0

    .line 1243
    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    iget v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    add-int v0, v3, v4

    .line 1244
    .local v0, offsetY:I
    new-instance v2, Landroid/graphics/Rect;

    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    sub-int/2addr v3, v0

    iget v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    iget v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    sub-int/2addr v5, v0

    iget v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    add-int/2addr v5, v6

    invoke-direct {v2, v8, v3, v4, v5}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1247
    .local v2, rect:Landroid/graphics/Rect;
    new-instance v1, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/graphics/Rect;->width()I

    move-result v4

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/graphics/Rect;->height()I

    move-result v5

    invoke-static {v4, v5}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    invoke-direct {v1, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 1249
    .local v1, panel:Lcom/nemustech/tiffany/world/TFPanel;
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v1, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1251
    invoke-virtual {v1, v8, v7, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1252
    const/4 v3, 0x1

    invoke-virtual {v1, v3, v7, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1254
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopbackPanelOnTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    invoke-virtual {v1, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 1255
    return-object v1
.end method

.method private createMorphingBackgroundPanelHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .locals 7

    .prologue
    const/high16 v6, 0x4000

    const/4 v5, 0x1

    .line 1153
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f020026

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1154
    .local v0, bgImage:Landroid/graphics/Bitmap;
    new-instance v1, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>()V

    .line 1155
    .local v1, holder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const-string v3, "MorphingBackPanel holder"

    iput-object v3, v1, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 1156
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createMorphingBackgroundPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v3

    iput-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1157
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v3

    iput v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelFoldedHeight:F

    .line 1158
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelUnfoldedHeightInPixels:I

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iput v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelUnfoldedHeight:F

    .line 1159
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3, v1}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1160
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v3, v5}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getLocation(I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->getLocation(I)F

    move-result v4

    add-float/2addr v3, v4

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float/2addr v3, v4

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v4

    div-float/2addr v4, v6

    sub-float v2, v3, v4

    .line 1162
    .local v2, locationY:F
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3, v5, v2, v5}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 1164
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    new-instance v4, Lcom/nemustech/regina/widgets/clock/ClockWidget$24;

    invoke-direct {v4, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$24;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setOnPanelMorphListener(Lcom/nemustech/tiffany/world/TFPanel$OnPanelMorphListener;)V

    .line 1173
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v3, v1}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1174
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 1175
    return-object v1
.end method

.method private createTopBackPanel()Lcom/nemustech/tiffany/world/TFPanel;
    .locals 8

    .prologue
    const/4 v7, 0x0

    const/4 v6, 0x0

    .line 799
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    .line 800
    .local v1, backPanelWidthInPixels:I
    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    iget v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    iget v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    add-int/2addr v4, v5

    sub-int/2addr v3, v4

    iget v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    add-int v0, v3, v4

    .line 801
    .local v0, backPanelHeightInPixels:I
    new-instance v2, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v3, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v4, v0}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v4

    invoke-direct {v2, v3, v4}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    .line 803
    .local v2, panel:Lcom/nemustech/tiffany/world/TFPanel;
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 804
    invoke-virtual {v2, v7, v6, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 806
    invoke-virtual {v2, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 807
    const/4 v3, 0x1

    invoke-virtual {v2, v3, v6, v6}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 809
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopbackPanelOnTouchListener:Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setOnTouchListener(Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;)V

    .line 810
    return-object v2
.end method

.method private createTopBackgroundPanelBitmap(I)Landroid/graphics/Bitmap;
    .locals 23
    .parameter "faceIndex"

    .prologue
    .line 917
    const-class v22, Ljava/lang/Object;

    monitor-enter v22

    .line 919
    :try_start_0
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    move v12, v0

    .line 920
    .local v12, backPanelWidthInPixels:I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    move v6, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    move v7, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    move v8, v0

    add-int/2addr v7, v8

    sub-int/2addr v6, v7

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move v7, v0

    add-int v11, v6, v7

    .line 922
    .local v11, backPanelHeightInPixels:I
    sget-object v6, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v12, v11, v6}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v14

    .line 923
    .local v14, bmp:Landroid/graphics/Bitmap;
    new-instance v5, Landroid/graphics/Canvas;

    invoke-direct {v5, v14}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 924
    .local v5, canvas:Landroid/graphics/Canvas;
    const/4 v6, 0x0

    const/16 v7, 0xff

    const/16 v8, 0xff

    const/16 v9, 0xff

    invoke-virtual {v5, v6, v7, v8, v9}, Landroid/graphics/Canvas;->drawARGB(IIII)V

    .line 925
    new-instance v10, Landroid/graphics/Paint;

    const/4 v6, 0x1

    invoke-direct {v10, v6}, Landroid/graphics/Paint;-><init>(I)V

    .line 927
    .local v10, paint:Landroid/graphics/Paint;
    const/4 v6, 0x1

    move/from16 v0, p1

    move v1, v6

    if-ne v0, v1, :cond_1

    .line 928
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object v6, v0

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f020026

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v13

    .line 929
    .local v13, bgImage:Landroid/graphics/Bitmap;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object v6, v0

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f02005e

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v20

    .line 930
    .local v20, titleBitmap:Landroid/graphics/Bitmap;
    if-eqz v13, :cond_0

    if-eqz v20, :cond_0

    .line 931
    new-instance v6, Landroid/graphics/Rect;

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v9

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v10

    .end local v10           #paint:Landroid/graphics/Paint;
    invoke-direct {v6, v7, v8, v9, v10}, Landroid/graphics/Rect;-><init>(IIII)V

    new-instance v7, Landroid/graphics/Rect;

    const/4 v8, 0x1

    move-object/from16 v0, p0

    move v1, v8

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v8

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move v9, v0

    const/4 v10, 0x1

    move-object/from16 v0, p0

    move v1, v10

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v10

    sub-int v10, v12, v10

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move v15, v0

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v16

    add-int v15, v15, v16

    invoke-direct {v7, v8, v9, v10, v15}, Landroid/graphics/Rect;-><init>(IIII)V

    const/4 v8, 0x0

    move-object v0, v5

    move-object/from16 v1, v20

    move-object v2, v6

    move-object v3, v7

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 934
    new-instance v6, Landroid/graphics/Rect;

    const/4 v7, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move v8, v0

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v9

    add-int/2addr v8, v9

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v9

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v10

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    move v15, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    move/from16 v16, v0

    add-int v15, v15, v16

    sub-int/2addr v10, v15

    invoke-direct {v6, v7, v8, v9, v10}, Landroid/graphics/Rect;-><init>(IIII)V

    new-instance v7, Landroid/graphics/Rect;

    const/4 v8, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move v9, v0

    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v10

    add-int/2addr v9, v10

    invoke-direct {v7, v8, v9, v12, v11}, Landroid/graphics/Rect;-><init>(IIII)V

    const/4 v8, 0x0

    invoke-virtual {v5, v13, v6, v7, v8}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 939
    invoke-virtual {v13}, Landroid/graphics/Bitmap;->recycle()V

    .line 940
    invoke-virtual/range {v20 .. v20}, Landroid/graphics/Bitmap;->recycle()V

    .line 942
    :cond_0
    monitor-exit v22

    .line 983
    .end local v11           #backPanelHeightInPixels:I
    .end local v20           #titleBitmap:Landroid/graphics/Bitmap;
    :goto_0
    return-object v14

    .line 946
    .end local v13           #bgImage:Landroid/graphics/Bitmap;
    .restart local v10       #paint:Landroid/graphics/Paint;
    .restart local v11       #backPanelHeightInPixels:I
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object v6, v0

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f020026

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v13

    .line 947
    .restart local v13       #bgImage:Landroid/graphics/Bitmap;
    if-eqz v13, :cond_2

    .line 948
    new-instance v6, Landroid/graphics/Rect;

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v9

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v15

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackPanelFoldedHeightInPixels:I

    move/from16 v16, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackPanelHeightInPixels:I

    move/from16 v17, v0

    add-int v16, v16, v17

    sub-int v15, v15, v16

    invoke-direct {v6, v7, v8, v9, v15}, Landroid/graphics/Rect;-><init>(IIII)V

    new-instance v7, Landroid/graphics/Rect;

    const/4 v8, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    move v9, v0

    invoke-direct {v7, v8, v9, v12, v11}, Landroid/graphics/Rect;-><init>(IIII)V

    const/4 v8, 0x0

    invoke-virtual {v5, v13, v6, v7, v8}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 950
    invoke-virtual {v13}, Landroid/graphics/Bitmap;->recycle()V

    .line 954
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object v6, v0

    const v7, 0x7f020029

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    invoke-virtual {v6}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v17

    .line 955
    .local v17, digitWidthInPixels:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object v6, v0

    const v7, 0x7f020029

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    invoke-virtual {v6}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v16

    .line 956
    .local v16, digitHeightInPixels:I
    const/high16 v6, -0x100

    invoke-virtual {v10, v6}, Landroid/graphics/Paint;->setColor(I)V

    .line 957
    div-int/lit8 v6, v12, 0x2

    const/16 v7, 0x8e

    move-object/from16 v0, p0

    move v1, v7

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v7

    sub-int/2addr v6, v7

    div-int/lit8 v7, v17, 0x2

    sub-int v18, v6, v7

    .line 958
    .local v18, leftSideStartX:I
    div-int/lit8 v6, v12, 0x2

    const/16 v7, 0x38

    move-object/from16 v0, p0

    move v1, v7

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v7

    add-int/2addr v6, v7

    div-int/lit8 v7, v17, 0x2

    sub-int v19, v6, v7

    .line 959
    .local v19, rightSideStartX:I
    move/from16 v0, v18

    int-to-float v0, v0

    move v6, v0

    sub-int v7, v11, v16

    int-to-float v7, v7

    mul-int/lit8 v8, v17, 0x2

    add-int v8, v8, v18

    const/4 v9, 0x1

    move-object/from16 v0, p0

    move v1, v9

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v9

    add-int/2addr v8, v9

    int-to-float v8, v8

    int-to-float v9, v11

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 961
    move/from16 v0, v19

    int-to-float v0, v0

    move v6, v0

    sub-int v7, v11, v16

    int-to-float v7, v7

    mul-int/lit8 v8, v17, 0x2

    add-int v8, v8, v19

    const/4 v9, 0x1

    move-object/from16 v0, p0

    move v1, v9

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v9

    add-int/2addr v8, v9

    int-to-float v8, v8

    int-to-float v9, v11

    invoke-virtual/range {v5 .. v10}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 965
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object v6, v0

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f020028

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v15

    .line 966
    .local v15, colonImage:Landroid/graphics/Bitmap;
    if-eqz v15, :cond_3

    .line 967
    new-instance v6, Landroid/graphics/Rect;

    const/4 v7, 0x0

    const/4 v8, 0x0

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v9

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v10

    .end local v10           #paint:Landroid/graphics/Paint;
    invoke-direct {v6, v7, v8, v9, v10}, Landroid/graphics/Rect;-><init>(IIII)V

    new-instance v7, Landroid/graphics/Rect;

    div-int/lit8 v8, v12, 0x2

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v9

    div-int/lit8 v9, v9, 0x2

    sub-int/2addr v8, v9

    div-int/lit8 v9, v16, 0x2

    sub-int v9, v11, v9

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v10

    div-int/lit8 v10, v10, 0x2

    sub-int/2addr v9, v10

    div-int/lit8 v10, v12, 0x2

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v17

    .end local v17           #digitWidthInPixels:I
    div-int/lit8 v17, v17, 0x2

    add-int v10, v10, v17

    div-int/lit8 v16, v16, 0x2

    .end local v16           #digitHeightInPixels:I
    sub-int v11, v11, v16

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getHeight()I

    .end local v11           #backPanelHeightInPixels:I
    move-result v16

    div-int/lit8 v16, v16, 0x2

    add-int v11, v11, v16

    invoke-direct {v7, v8, v9, v10, v11}, Landroid/graphics/Rect;-><init>(IIII)V

    const/4 v8, 0x0

    invoke-virtual {v5, v15, v6, v7, v8}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 972
    invoke-virtual {v15}, Landroid/graphics/Bitmap;->recycle()V

    .line 976
    :cond_3
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsShowWeather:Z

    move v6, v0

    if-eqz v6, :cond_4

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCurrentWeather:I

    move v6, v0

    const/4 v7, -0x1

    if-eq v6, v7, :cond_4

    .line 977
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCurrentWeather:I

    move v6, v0

    move-object/from16 v0, p0

    move v1, v6

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createWeatherPanelBitmap(I)Landroid/graphics/Bitmap;

    move-result-object v21

    .line 978
    .local v21, weatherBitmap:Landroid/graphics/Bitmap;
    if-eqz v21, :cond_4

    .line 979
    div-int/lit8 v6, v12, 0x2

    const/16 v7, 0x5f

    move-object/from16 v0, p0

    move v1, v7

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v7

    add-int/2addr v6, v7

    invoke-virtual/range {v21 .. v21}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v7

    div-int/lit8 v7, v7, 0x2

    sub-int/2addr v6, v7

    int-to-float v6, v6

    const/16 v7, -0x14

    move-object/from16 v0, p0

    move v1, v7

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v7

    int-to-float v7, v7

    const/4 v8, 0x0

    move-object v0, v5

    move-object/from16 v1, v21

    move v2, v6

    move v3, v7

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 980
    invoke-virtual/range {v21 .. v21}, Landroid/graphics/Bitmap;->recycle()V

    .line 983
    .end local v21           #weatherBitmap:Landroid/graphics/Bitmap;
    :cond_4
    monitor-exit v22

    goto/16 :goto_0

    .line 984
    .end local v5           #canvas:Landroid/graphics/Canvas;
    .end local v12           #backPanelWidthInPixels:I
    .end local v13           #bgImage:Landroid/graphics/Bitmap;
    .end local v14           #bmp:Landroid/graphics/Bitmap;
    .end local v15           #colonImage:Landroid/graphics/Bitmap;
    .end local v18           #leftSideStartX:I
    .end local v19           #rightSideStartX:I
    :catchall_0
    move-exception v6

    monitor-exit v22
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v6
.end method

.method private createTopBackgroundPanelHolder()Lcom/nemustech/tiffany/world/TFPlaceHolder;
    .locals 11

    .prologue
    const/4 v10, 0x1

    const/4 v8, 0x0

    const/4 v9, 0x0

    .line 1110
    new-instance v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-direct {v0}, Lcom/nemustech/tiffany/world/TFPlaceHolder;-><init>()V

    .line 1111
    .local v0, holder:Lcom/nemustech/tiffany/world/TFPlaceHolder;
    const-string v4, "TopBackgroundPanel holder"

    iput-object v4, v0, Lcom/nemustech/tiffany/world/TFPlaceHolder;->mDescription:Ljava/lang/String;

    .line 1113
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createFrontHighLightPanel()Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v4

    iput-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1114
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontHighLightPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v0}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1116
    new-instance v4, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelWidthInPixels:I

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelHeightInPixels:I

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v6

    invoke-direct {v4, v5, v6}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1117
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1118
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setTouchable(Z)V

    .line 1119
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1121
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v4}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v4

    const v5, 0x7f070026

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 1122
    .local v1, initialText:Ljava/lang/String;
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    if-nez v4, :cond_1

    move-object v4, v1

    :goto_0
    iput-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTextString:Ljava/lang/String;

    .line 1123
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v9, v8, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1125
    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelWidthInPixels:I

    .line 1126
    .local v3, weatherPanelWidthInPixels:I
    iget v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelHeightInPixels:I

    .line 1128
    .local v2, weatherPanelHeightInPixels:I
    new-instance v4, Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v5, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v6, v2}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v6

    invoke-direct {v4, v5, v6}, Lcom/nemustech/tiffany/world/TFPanel;-><init>(FF)V

    iput-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    .line 1129
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1130
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mOnSelect:Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;

    invoke-virtual {v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setSelectListener(Lcom/nemustech/tiffany/world/TFWorld$OnSelectListener;)V

    .line 1131
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelJitImageProvider:Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;

    invoke-virtual {v4, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setJitImageProvider(Lcom/nemustech/tiffany/world/TFModel$JitImageProvider;)V

    .line 1132
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1134
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    if-eqz v4, :cond_0

    .line 1135
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    invoke-virtual {v4}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getCurrentCondition()Lcom/nemustech/regina/widgets/clock/WeatherData$CurrentCondition;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/widgets/clock/WeatherData$CurrentCondition;->getWeather()I

    move-result v4

    iput v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCurrentWeather:I

    .line 1136
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v9, v8, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1137
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v10}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 1140
    :cond_0
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v0}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1141
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v4, v0}, Lcom/nemustech/tiffany/world/TFPanel;->attachTo(Lcom/nemustech/tiffany/world/TFHolder;)V

    .line 1143
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mEventConsumerList:Ljava/util/LinkedList;

    invoke-virtual {v4, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 1145
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const/16 v6, 0x5f

    invoke-virtual {p0, v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v6

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    iget-object v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelHeightInPixels:I

    iget v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    add-int/2addr v7, v8

    div-int/lit8 v7, v7, 0x2

    const/16 v8, 0x11

    invoke-virtual {p0, v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v8

    add-int/2addr v7, v8

    invoke-static {v6, v7}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v6

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v7}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v7

    const/high16 v8, 0x4000

    div-float/2addr v7, v8

    sub-float/2addr v6, v7

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 1147
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelTopMargin:I

    iget v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanelHeightInPixels:I

    div-int/lit8 v7, v7, 0x2

    add-int/2addr v6, v7

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-virtual {v4, v10, v5, v9}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 1148
    return-object v0

    .end local v2           #weatherPanelHeightInPixels:I
    .end local v3           #weatherPanelWidthInPixels:I
    :cond_1
    move-object v4, v8

    .line 1122
    goto/16 :goto_0
.end method

.method private createWeatherPanelBitmap(I)Landroid/graphics/Bitmap;
    .locals 27
    .parameter "weather"

    .prologue
    .line 1712
    const-class v21, Ljava/lang/Object;

    monitor-enter v21

    .line 1716
    :try_start_0
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelWidthInPixels:I

    move/from16 v19, v0

    .line 1717
    .local v19, weatherPanelWidthInPixels:I
    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanelHeightInPixels:I

    move/from16 v18, v0

    .line 1719
    .local v18, weatherPanelHeightInPixels:I
    sget-object v22, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    move/from16 v0, v19

    move/from16 v1, v18

    move-object/from16 v2, v22

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v6

    .line 1720
    .local v6, bmp:Landroid/graphics/Bitmap;
    new-instance v8, Landroid/graphics/Canvas;

    invoke-direct {v8, v6}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 1721
    .local v8, canvas:Landroid/graphics/Canvas;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v22, v0

    invoke-static/range {v22 .. v22}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v14

    .line 1724
    .local v14, rc:Lcom/nemustech/regina/ResourceCare;
    new-instance v16, Landroid/graphics/Rect;

    const/16 v22, 0x0

    const/16 v23, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v24, v0

    const v25, 0x7f020034

    invoke-virtual/range {v24 .. v25}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v24

    invoke-virtual/range {v24 .. v24}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v24

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v25, v0

    const v26, 0x7f020034

    invoke-virtual/range {v25 .. v26}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v25

    invoke-virtual/range {v25 .. v25}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v25

    move-object/from16 v0, v16

    move/from16 v1, v22

    move/from16 v2, v23

    move/from16 v3, v24

    move/from16 v4, v25

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1725
    .local v16, srcRect:Landroid/graphics/Rect;
    new-instance v9, Landroid/graphics/Rect;

    const/16 v22, 0x0

    const/16 v23, 0x0

    move-object v0, v9

    move/from16 v1, v22

    move/from16 v2, v23

    move/from16 v3, v19

    move/from16 v4, v19

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1727
    .local v9, destRect:Landroid/graphics/Rect;
    invoke-static/range {p1 .. p1}, Lcom/nemustech/regina/widgets/clock/Weather;->getCode(I)I

    move-result v22

    invoke-static/range {v22 .. v22}, Lcom/nemustech/regina/widgets/clock/Weather;->getResourceId(I)I

    move-result v15

    .line 1728
    .local v15, resourceId:I
    if-eqz v15, :cond_0

    .line 1729
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    move-object/from16 v22, v0

    move-object/from16 v0, v22

    move v1, v15

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v5

    .line 1730
    .local v5, bitmap:Landroid/graphics/Bitmap;
    if-eqz v5, :cond_0

    .line 1731
    const/16 v22, 0x0

    move-object v0, v8

    move-object v1, v5

    move-object/from16 v2, v16

    move-object v3, v9

    move-object/from16 v4, v22

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    .line 1735
    .end local v5           #bitmap:Landroid/graphics/Bitmap;
    :cond_0
    new-instance v10, Landroid/graphics/Paint;

    invoke-direct {v10}, Landroid/graphics/Paint;-><init>()V

    .line 1736
    .local v10, fillPaint:Landroid/graphics/Paint;
    const/16 v22, 0x1

    move-object v0, v10

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 1737
    const v22, 0x7f060062

    move-object v0, v14

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ResourceCare;->getDimensionF(I)F

    move-result v17

    .line 1739
    .local v17, textSize:F
    const/16 v22, -0x1

    move-object v0, v10

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 1740
    move-object v0, v10

    move/from16 v1, v17

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    .line 1741
    sget-object v22, Landroid/graphics/Paint$Align;->CENTER:Landroid/graphics/Paint$Align;

    move-object v0, v10

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    .line 1742
    const/high16 v22, 0x3f80

    const/high16 v23, 0x3f80

    const/high16 v24, 0x3f80

    const/high16 v25, -0x100

    move-object v0, v10

    move/from16 v1, v22

    move/from16 v2, v23

    move/from16 v3, v24

    move/from16 v4, v25

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    .line 1744
    invoke-static/range {p1 .. p1}, Lcom/nemustech/regina/widgets/clock/Weather;->getString(I)[Ljava/lang/String;

    move-result-object v20

    .line 1746
    .local v20, weatherString:[Ljava/lang/String;
    const/4 v12, 0x0

    .line 1747
    .local v12, locationY:F
    const v22, 0x3f8ccccd

    mul-float v13, v17, v22

    .line 1748
    .local v13, offset:F
    const/16 v22, 0x5

    move-object/from16 v0, p0

    move/from16 v1, v22

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->convertPixelByDensity(I)I

    move-result v7

    .line 1749
    .local v7, bottomMargin:I
    move-object/from16 v0, v20

    array-length v0, v0

    move/from16 v22, v0

    const/16 v23, 0x1

    move/from16 v0, v22

    move/from16 v1, v23

    if-le v0, v1, :cond_1

    .line 1750
    move/from16 v0, v18

    int-to-float v0, v0

    move/from16 v22, v0

    sub-float v22, v22, v13

    move v0, v7

    int-to-float v0, v0

    move/from16 v23, v0

    sub-float v12, v22, v23

    .line 1752
    const/4 v11, 0x0

    .local v11, index:I
    :goto_0
    move-object/from16 v0, v20

    array-length v0, v0

    move/from16 v22, v0

    move v0, v11

    move/from16 v1, v22

    if-ge v0, v1, :cond_2

    .line 1753
    aget-object v22, v20, v11

    div-int/lit8 v23, v19, 0x2

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    move v0, v11

    int-to-float v0, v0

    move/from16 v24, v0

    mul-float v24, v24, v13

    add-float v24, v24, v12

    move-object v0, v8

    move-object/from16 v1, v22

    move/from16 v2, v23

    move/from16 v3, v24

    move-object v4, v10

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1752
    add-int/lit8 v11, v11, 0x1

    goto :goto_0

    .line 1756
    .end local v11           #index:I
    :cond_1
    sub-int v22, v18, v7

    move/from16 v0, v22

    int-to-float v0, v0

    move v12, v0

    .line 1757
    const/16 v22, 0x0

    aget-object v22, v20, v22

    div-int/lit8 v23, v19, 0x2

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    move-object v0, v8

    move-object/from16 v1, v22

    move/from16 v2, v23

    move v3, v12

    move-object v4, v10

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    .line 1766
    :cond_2
    monitor-exit v21

    return-object v6

    .line 1767
    .end local v6           #bmp:Landroid/graphics/Bitmap;
    .end local v7           #bottomMargin:I
    .end local v8           #canvas:Landroid/graphics/Canvas;
    .end local v9           #destRect:Landroid/graphics/Rect;
    .end local v10           #fillPaint:Landroid/graphics/Paint;
    .end local v12           #locationY:F
    .end local v13           #offset:F
    .end local v14           #rc:Lcom/nemustech/regina/ResourceCare;
    .end local v15           #resourceId:I
    .end local v16           #srcRect:Landroid/graphics/Rect;
    .end local v17           #textSize:F
    .end local v18           #weatherPanelHeightInPixels:I
    .end local v19           #weatherPanelWidthInPixels:I
    .end local v20           #weatherString:[Ljava/lang/String;
    :catchall_0
    move-exception v22

    monitor-exit v21
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v22
.end method

.method private extend()V
    .locals 7

    .prologue
    const/4 v3, 0x0

    .line 1776
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastDisplayState:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 1777
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    invoke-static {v0, v1}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v1

    iget v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelUnfoldedHeight:F

    const-wide/16 v5, 0xc8

    move-object v0, p0

    move v4, v3

    invoke-direct/range {v0 .. v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->morphPanel(FFFFJ)V

    .line 1780
    const/4 v0, 0x2

    iput v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelEffectType:I

    .line 1782
    :cond_0
    return-void
.end method

.method private extendInBack()V
    .locals 4

    .prologue
    .line 1785
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 1786
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->lock()V

    .line 1787
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    const-wide/16 v2, 0xc8

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 1788
    const/16 v0, 0x9

    iput v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelEffectType:I

    .line 1790
    :cond_0
    return-void
.end method

.method private forceExtend()V
    .locals 8

    .prologue
    const/4 v7, 0x0

    const/4 v6, 0x2

    const/4 v5, 0x0

    const/4 v4, 0x1

    .line 1200
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelUnfoldedHeight:F

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v2

    sub-float/2addr v1, v2

    const/high16 v2, 0x4000

    div-float v0, v1, v2

    .line 1201
    .local v0, offset:F
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    neg-float v2, v0

    invoke-virtual {v1, v4, v2, v4}, Lcom/nemustech/tiffany/world/TFHolder;->locate(IFZ)V

    .line 1202
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v4, v0, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 1203
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v1, v4, v0, v4}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->locate(IFZ)V

    .line 1204
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v4, v0, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 1205
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitsHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v4, v0, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 1206
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackPanelWidthInPixels:I

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v2

    iget v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanelUnfoldedHeight:F

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    .line 1208
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    neg-float v2, v0

    invoke-virtual {v1, v4, v2, v4}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 1209
    iput v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastDisplayState:I

    .line 1210
    iput v6, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    .line 1211
    iput v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelEffectType:I

    .line 1212
    iput-boolean v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mShowForecast:Z

    .line 1213
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v5, v7, v7}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1215
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateHeight2D()V

    .line 1216
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    if-eqz v1, :cond_0

    .line 1217
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateForecast()V

    .line 1218
    :cond_0
    return-void
.end method

.method private getCalendarTimeZoneApplied()Ljava/util/Calendar;
    .locals 19

    .prologue
    .line 2302
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    move-object/from16 v16, v0

    if-eqz v16, :cond_5

    .line 2303
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    move-object/from16 v16, v0

    const/16 v17, 0x0

    const/16 v18, 0x1

    invoke-virtual/range {v16 .. v18}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v13

    .line 2305
    .local v13, sign:Ljava/lang/String;
    const-string v16, "+"

    move-object v0, v13

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v16

    if-nez v16, :cond_0

    const-string v16, "-"

    move-object v0, v13

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v16

    if-eqz v16, :cond_2

    .line 2307
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    move-object/from16 v16, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v16

    invoke-direct {v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getTimeZoneOffset(Ljava/lang/String;)J

    move-result-wide v11

    .line 2308
    .local v11, offset:J
    const-wide v16, 0x7fffffffffffffffL

    cmp-long v16, v11, v16

    if-gez v16, :cond_1

    .line 2309
    new-instance v14, Landroid/text/format/Time;

    invoke-direct {v14}, Landroid/text/format/Time;-><init>()V

    .line 2310
    .local v14, time:Landroid/text/format/Time;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    .line 2311
    .local v4, currentTime:J
    invoke-virtual {v14, v4, v5}, Landroid/text/format/Time;->set(J)V

    .line 2312
    move-object v0, v14

    iget-object v0, v0, Landroid/text/format/Time;->timezone:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-static/range {v16 .. v16}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;

    move-result-object v6

    .line 2313
    .local v6, currentTimezone:Ljava/util/TimeZone;
    invoke-virtual {v6}, Ljava/util/TimeZone;->getRawOffset()I

    move-result v16

    move/from16 v0, v16

    int-to-long v0, v0

    move-wide/from16 v16, v0

    sub-long v9, v4, v16

    .line 2314
    .local v9, gmtTime:J
    add-long v7, v9, v11

    .line 2315
    .local v7, desTime:J
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    .line 2316
    .local v3, c:Ljava/util/Calendar;
    invoke-virtual {v3, v7, v8}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 2342
    .end local v4           #currentTime:J
    .end local v6           #currentTimezone:Ljava/util/TimeZone;
    .end local v7           #desTime:J
    .end local v9           #gmtTime:J
    .end local v11           #offset:J
    .end local v13           #sign:Ljava/lang/String;
    .end local v14           #time:Landroid/text/format/Time;
    :goto_0
    return-object v3

    .line 2319
    .end local v3           #c:Ljava/util/Calendar;
    .restart local v11       #offset:J
    .restart local v13       #sign:Ljava/lang/String;
    :cond_1
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    .line 2320
    .restart local v3       #c:Ljava/util/Calendar;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v16

    move-object v0, v3

    move-wide/from16 v1, v16

    invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    goto :goto_0

    .line 2323
    .end local v3           #c:Ljava/util/Calendar;
    .end local v11           #offset:J
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    move-object/from16 v16, v0

    const-string v17, "Default"

    invoke-virtual/range {v16 .. v17}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v16

    if-eqz v16, :cond_3

    .line 2324
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    .line 2325
    .restart local v3       #c:Ljava/util/Calendar;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v16

    move-object v0, v3

    move-wide/from16 v1, v16

    invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    goto :goto_0

    .line 2328
    .end local v3           #c:Ljava/util/Calendar;
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-static/range {v16 .. v16}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;

    move-result-object v15

    .line 2329
    .local v15, timeZone:Ljava/util/TimeZone;
    const/4 v3, 0x0

    .line 2330
    .restart local v3       #c:Ljava/util/Calendar;
    if-eqz v15, :cond_4

    .line 2331
    invoke-static {v15}, Ljava/util/Calendar;->getInstance(Ljava/util/TimeZone;)Ljava/util/Calendar;

    move-result-object v3

    goto :goto_0

    .line 2333
    :cond_4
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    .line 2334
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v16

    move-object v0, v3

    move-wide/from16 v1, v16

    invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    goto :goto_0

    .line 2340
    .end local v3           #c:Ljava/util/Calendar;
    .end local v13           #sign:Ljava/lang/String;
    .end local v15           #timeZone:Ljava/util/TimeZone;
    :cond_5
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    .line 2341
    .restart local v3       #c:Ljava/util/Calendar;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v16

    move-object v0, v3

    move-wide/from16 v1, v16

    invoke-virtual {v0, v1, v2}, Ljava/util/Calendar;->setTimeInMillis(J)V

    goto :goto_0
.end method

.method public static getIndexOfPeriodValue(J)I
    .locals 3
    .parameter "period"

    .prologue
    .line 1304
    const/4 v0, 0x0

    .local v0, index:I
    :goto_0
    sget-object v1, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PERIOD_VALUES:[J

    array-length v1, v1

    if-ge v0, v1, :cond_1

    .line 1305
    sget-object v1, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PERIOD_VALUES:[J

    aget-wide v1, v1, v0

    cmp-long v1, v1, p0

    if-nez v1, :cond_0

    move v1, v0

    .line 1307
    :goto_1
    return v1

    .line 1304
    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 1307
    :cond_1
    const/4 v1, -0x1

    goto :goto_1
.end method

.method private getIntent(Landroid/content/ComponentName;)Landroid/content/Intent;
    .locals 2
    .parameter "componentName"

    .prologue
    .line 649
    if-eqz p1, :cond_0

    .line 650
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 651
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "android.intent.category.LAUNCHER"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 652
    invoke-virtual {v0, p1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 653
    const/high16 v1, 0x1020

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    move-object v1, v0

    .line 655
    .end local v0           #intent:Landroid/content/Intent;
    :goto_0
    return-object v1

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method private getOnlyCityName(Ljava/lang/String;)Ljava/lang/String;
    .locals 2
    .parameter "fullCityName"

    .prologue
    .line 2513
    const-string v1, ","

    invoke-virtual {p1, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    .line 2514
    .local v0, endOfCityName:I
    if-lez v0, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 2515
    const/4 v1, 0x0

    invoke-virtual {p1, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    .line 2517
    :goto_0
    return-object v1

    :cond_0
    move-object v1, p1

    goto :goto_0
.end method

.method private getRunnableInSettingsRow(I)Ljava/lang/Runnable;
    .locals 1
    .parameter "rowIndex"

    .prologue
    .line 688
    packed-switch p1, :pswitch_data_0

    .line 698
    const/4 v0, 0x0

    :goto_0
    return-object v0

    .line 690
    :pswitch_0
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowTempUnitSelDialog:Ljava/lang/Runnable;

    goto :goto_0

    .line 692
    :pswitch_1
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowAppSelDialog:Ljava/lang/Runnable;

    goto :goto_0

    .line 694
    :pswitch_2
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowHourModeSelDialog:Ljava/lang/Runnable;

    goto :goto_0

    .line 696
    :pswitch_3
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowUpdatePeriod:Ljava/lang/Runnable;

    goto :goto_0

    .line 688
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method private getStringInSettingsRow(I)Ljava/lang/String;
    .locals 9
    .parameter "rowIndex"

    .prologue
    .line 659
    packed-switch p1, :pswitch_data_0

    .line 683
    const-string v7, ""

    .end local p0
    :goto_0
    return-object v7

    .line 661
    .restart local p0
    :pswitch_0
    iget v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    if-nez v7, :cond_0

    const-string v7, "Fahrenheit"

    move-object v1, v7

    .line 662
    .local v1, currentTempString:Ljava/lang/String;
    :goto_1
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "Unidad de temperatura : "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    goto :goto_0

    .line 661
    .end local v1           #currentTempString:Ljava/lang/String;
    :cond_0
    const-string v7, "Celsius"

    move-object v1, v7

    goto :goto_1

    .line 664
    :pswitch_1
    const-string v7, "Cambiar aplicacion de reloj"

    goto :goto_0

    .line 666
    :pswitch_2
    iget-boolean v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTwentyFourHourMode:Z

    if-eqz v7, :cond_1

    const-string v7, "Modo 24 horas"

    move-object v0, v7

    .line 667
    .local v0, currentHourModeString:Ljava/lang/String;
    :goto_2
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "Modo de horas : "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    goto :goto_0

    .line 666
    .end local v0           #currentHourModeString:Ljava/lang/String;
    :cond_1
    const-string v7, "Modo 12 horas"

    move-object v0, v7

    goto :goto_2

    .line 669
    :pswitch_3
    const-string v6, "Periodo de actualizacion del tiempo : "

    .line 670
    .local v6, updatePeriodString:Ljava/lang/String;
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getWeatherUpdatePeriod()J

    move-result-wide v4

    .line 671
    .local v4, period:J
    invoke-static {v4, v5}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getIndexOfPeriodValue(J)I

    move-result v2

    .line 672
    .local v2, index:I
    if-ltz v2, :cond_2

    sget-object v7, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PREIOD_STRINGS:[Ljava/lang/String;

    array-length v7, v7

    if-ge v2, v7, :cond_2

    .line 673
    sget-object v7, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PREIOD_STRINGS:[Ljava/lang/String;

    aget-object v7, v7, v2

    invoke-virtual {v6, v7}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    :goto_3
    move-object v7, v6

    .line 678
    goto :goto_0

    .line 676
    :cond_2
    sget-object v7, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PREIOD_STRINGS:[Ljava/lang/String;

    const/4 v8, 0x1

    aget-object v7, v7, v8

    invoke-virtual {v6, v7}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    goto :goto_3

    .line 680
    .end local v2           #index:I
    .end local v4           #period:J
    .end local v6           #updatePeriodString:Ljava/lang/String;
    .restart local p0
    :pswitch_4
    const-string v3, "Last Update : "

    .local v3, lastUpdateString:Ljava/lang/String;
    move-object v7, v3

    .line 681
    goto :goto_0

    .line 659
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method

.method private getTempUnitString(I)Ljava/lang/String;
    .locals 1
    .parameter "tempUnit"

    .prologue
    .line 1272
    packed-switch p1, :pswitch_data_0

    .line 1278
    const-string v0, "\u2109"

    :goto_0
    return-object v0

    .line 1274
    :pswitch_0
    const-string v0, "\u2109"

    goto :goto_0

    .line 1276
    :pswitch_1
    const-string v0, "\u2103"

    goto :goto_0

    .line 1272
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method private getTimeZoneOffset(Ljava/lang/String;)J
    .locals 8
    .parameter "gmt"

    .prologue
    const/4 v7, 0x1

    .line 2347
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v5

    const/4 v6, 0x5

    if-le v5, v6, :cond_1

    .line 2348
    const/4 v5, 0x0

    invoke-virtual {p1, v5, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    .line 2349
    .local v4, sign:Ljava/lang/String;
    const/4 v5, 0x3

    invoke-virtual {p1, v7, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    .line 2350
    .local v0, hour:I
    const/4 v5, 0x4

    const/4 v6, 0x6

    invoke-virtual {p1, v5, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    .line 2351
    .local v1, minute:I
    mul-int/lit8 v5, v0, 0x3c

    mul-int/lit8 v5, v5, 0x3c

    mul-int/lit16 v5, v5, 0x3e8

    mul-int/lit8 v6, v1, 0x3c

    mul-int/lit16 v6, v6, 0x3e8

    add-int/2addr v5, v6

    int-to-long v2, v5

    .line 2352
    .local v2, offset:J
    const-string v5, "-"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 2353
    const-wide/16 v5, -0x1

    mul-long/2addr v2, v5

    :cond_0
    move-wide v5, v2

    .line 2356
    .end local v0           #hour:I
    .end local v1           #minute:I
    .end local v2           #offset:J
    .end local v4           #sign:Ljava/lang/String;
    :goto_0
    return-wide v5

    :cond_1
    const-wide v5, 0x7fffffffffffffffL

    goto :goto_0
.end method

.method private isConnected()Z
    .locals 7

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 2638
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    const-string v4, "connectivity"

    invoke-virtual {v3, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 2639
    .local v1, systemService:Landroid/net/ConnectivityManager;
    invoke-virtual {v1, v5}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;

    move-result-object v0

    .line 2640
    .local v0, mobile:Landroid/net/NetworkInfo;
    invoke-virtual {v1, v6}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;

    move-result-object v2

    .line 2641
    .local v2, wifi:Landroid/net/NetworkInfo;
    invoke-virtual {v0}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v3

    if-nez v3, :cond_0

    invoke-virtual {v2}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v3

    if-eqz v3, :cond_1

    :cond_0
    move v3, v6

    .line 2644
    :goto_0
    return v3

    :cond_1
    move v3, v5

    goto :goto_0
.end method

.method private isInScreen()Z
    .locals 3

    .prologue
    .line 2507
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getWorkspaceUID()I

    move-result v1

    .line 2508
    .local v1, parentIndex:I
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceUID()I

    move-result v0

    .line 2509
    .local v0, currentWsIndex:I
    if-ne v1, v0, :cond_0

    const/4 v2, 0x1

    :goto_0
    return v2

    :cond_0
    const/4 v2, 0x0

    goto :goto_0
.end method

.method private morphPanel(FFFFJ)V
    .locals 3
    .parameter "targetWidth"
    .parameter "targetHeight"
    .parameter "anchorX"
    .parameter "anchorY"
    .parameter "duration"

    .prologue
    .line 1771
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFHolder;->getLocation(I)F

    move-result v0

    iput v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidgetYPosBeforeMorph:F

    .line 1772
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const-wide/16 v1, 0xc8

    invoke-virtual {v0, p1, p2, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->morph(FFJ)V

    .line 1773
    return-void
.end method

.method private morphShift(F)V
    .locals 3
    .parameter "offset"

    .prologue
    const/4 v2, 0x1

    .line 1234
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    neg-float v1, p1

    invoke-virtual {v0, v2, v1, v2}, Lcom/nemustech/tiffany/world/TFHolder;->locate(IFZ)V

    .line 1235
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanelHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v0, v2, p1, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 1236
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v0, v2, p1, v2}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->locate(IFZ)V

    .line 1237
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v0, v2, p1, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 1238
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitsHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v0, v2, p1, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 1239
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    neg-float v1, p1

    invoke-virtual {v0, v2, v1, v2}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->locate(IFZ)V

    .line 1240
    return-void
.end method

.method private postUpdateWeather()V
    .locals 5

    .prologue
    .line 2384
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    .line 2385
    .local v0, parent:Lcom/nemustech/regina/RGWorkspace;
    if-nez v0, :cond_1

    .line 2386
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    invoke-direct {p0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateWeather(Ljava/lang/String;)V

    .line 2396
    :cond_0
    :goto_0
    return-void

    .line 2388
    :cond_1
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v1

    new-instance v2, Ljava/lang/Long;

    iget-wide v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mElementId:J

    invoke-direct {v2, v3, v4}, Ljava/lang/Long;-><init>(J)V

    new-instance v3, Lcom/nemustech/regina/widgets/clock/ClockWidget$37;

    invoke-direct {v3, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$37;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/RGWorkspace;->addPendingEvent(Ljava/lang/Long;Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method private registerReceiver()V
    .locals 3

    .prologue
    .line 2484
    iget-boolean v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsReceiverRegisterd:Z

    if-nez v0, :cond_0

    .line 2485
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentReceiver:Landroid/content/BroadcastReceiver;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentFilter:Landroid/content/IntentFilter;

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 2486
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsReceiverRegisterd:Z

    .line 2488
    :cond_0
    return-void
.end method

.method private removeCityData()V
    .locals 3

    .prologue
    .line 2442
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaPreference;->removeClockWidgetData(Ljava/lang/String;)V

    .line 2443
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2444
    return-void
.end method

.method private removeCityDatas()V
    .locals 3

    .prologue
    .line 2435
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaPreference;->removeClockWidgetCityName(Ljava/lang/String;)V

    .line 2436
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaPreference;->removeClockWidgetCityCode(Ljava/lang/String;)V

    .line 2437
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaPreference;->removeClockWidgetGmt(Ljava/lang/String;)V

    .line 2438
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2439
    return-void
.end method

.method private saveCityDatas(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter "cityName"
    .parameter "cityCode"
    .parameter "gmtValue"

    .prologue
    .line 2422
    if-eqz p1, :cond_0

    .line 2423
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Lcom/nemustech/regina/ReginaPreference;->setClockWidgetCityName(Ljava/lang/String;Ljava/lang/String;)V

    .line 2425
    :cond_0
    if-eqz p2, :cond_1

    .line 2426
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p2}, Lcom/nemustech/regina/ReginaPreference;->setClockWidgetCityCode(Ljava/lang/String;Ljava/lang/String;)V

    .line 2428
    :cond_1
    if-eqz p3, :cond_2

    .line 2429
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p3}, Lcom/nemustech/regina/ReginaPreference;->setClockWidgetGmt(Ljava/lang/String;Ljava/lang/String;)V

    .line 2431
    :cond_2
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2432
    return-void
.end method

.method private showTwistEffect(I)V
    .locals 11
    .parameter "faceIndex"

    .prologue
    const/16 v2, 0x384

    const/high16 v4, -0x3ccc

    const/4 v10, 0x0

    const/4 v3, 0x0

    const/4 v9, 0x1

    .line 1813
    if-nez p1, :cond_0

    .line 1814
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFHolder;->lock()V

    .line 1817
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v5, 0x0

    const/4 v8, 0x0

    invoke-virtual {v1, v10, v5, v8}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1819
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1820
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1821
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v1, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setBackFaceVisibility(Z)V

    .line 1822
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    invoke-virtual {v1, v9}, Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;->setVisibility(Z)V

    .line 1823
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    const/high16 v5, 0x4334

    invoke-virtual {v1, v5, v3}, Lcom/nemustech/tiffany/world/TFHolder;->look(FF)V

    .line 1824
    invoke-virtual {p0, v10, v9}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->switchToAnimationObject(II)Lcom/nemustech/tiffany/world/TFCustomPanel;

    move-result-object v6

    .line 1826
    .local v6, cusPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitsHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v10}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 1827
    new-instance v7, Lcom/nemustech/tiffany/world/TFTwistEffect;

    invoke-direct {v7, v6}, Lcom/nemustech/tiffany/world/TFTwistEffect;-><init>(Lcom/nemustech/tiffany/world/TFCustomPanel;)V

    .line 1829
    .local v7, tw:Lcom/nemustech/tiffany/world/TFTwistEffect;
    new-instance v0, Lcom/nemustech/tiffany/world/TFEffect$TwistParam;

    const/16 v1, 0x3e8

    new-instance v5, Landroid/view/animation/OvershootInterpolator;

    invoke-direct {v5}, Landroid/view/animation/OvershootInterpolator;-><init>()V

    invoke-direct/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFEffect$TwistParam;-><init>(IIFFLandroid/view/animation/Interpolator;)V

    .line 1831
    .local v0, param:Lcom/nemustech/tiffany/world/TFEffect$TwistParam;
    invoke-virtual {v0, v7}, Lcom/nemustech/tiffany/world/TFEffect$TwistParam;->setParam(Lcom/nemustech/tiffany/world/TFTwistEffect;)V

    .line 1832
    invoke-virtual {v6}, Lcom/nemustech/tiffany/world/TFCustomPanel;->lock()V

    .line 1833
    invoke-virtual {v6, v7}, Lcom/nemustech/tiffany/world/TFCustomPanel;->startBlender(Lcom/nemustech/tiffany/world/TFCustomPanel$Blender;)V

    .line 1834
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$27;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$27;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    invoke-virtual {v6, v1}, Lcom/nemustech/tiffany/world/TFCustomPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1875
    .end local v0           #param:Lcom/nemustech/tiffany/world/TFEffect$TwistParam;
    .end local v6           #cusPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;
    .end local v7           #tw:Lcom/nemustech/tiffany/world/TFTwistEffect;
    :goto_0
    return-void

    .line 1846
    :cond_0
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastDisplayState:I

    if-ne v1, v9, :cond_1

    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    const/4 v5, 0x2

    if-ne v1, v5, :cond_1

    .line 1847
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->shrinkInBack()V

    goto :goto_0

    .line 1849
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1}, Lcom/nemustech/tiffany/world/TFHolder;->lock()V

    .line 1850
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v9}, Lcom/nemustech/tiffany/world/TFHolder;->setVisibility(Z)V

    .line 1851
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidget:Lcom/nemustech/tiffany/world/TFHolder;

    invoke-virtual {v1, v3, v3}, Lcom/nemustech/tiffany/world/TFHolder;->look(FF)V

    .line 1852
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitsHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v1, v9}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 1853
    invoke-virtual {p0, v9, v10}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->switchToAnimationObject(II)Lcom/nemustech/tiffany/world/TFCustomPanel;

    move-result-object v6

    .line 1855
    .restart local v6       #cusPanel:Lcom/nemustech/tiffany/world/TFCustomPanel;
    new-instance v7, Lcom/nemustech/tiffany/world/TFTwistEffect;

    invoke-direct {v7, v6}, Lcom/nemustech/tiffany/world/TFTwistEffect;-><init>(Lcom/nemustech/tiffany/world/TFCustomPanel;)V

    .line 1857
    .restart local v7       #tw:Lcom/nemustech/tiffany/world/TFTwistEffect;
    new-instance v0, Lcom/nemustech/tiffany/world/TFEffect$TwistParam;

    const/16 v1, 0x3e8

    new-instance v5, Landroid/view/animation/OvershootInterpolator;

    invoke-direct {v5}, Landroid/view/animation/OvershootInterpolator;-><init>()V

    invoke-direct/range {v0 .. v5}, Lcom/nemustech/tiffany/world/TFEffect$TwistParam;-><init>(IIFFLandroid/view/animation/Interpolator;)V

    .line 1859
    .restart local v0       #param:Lcom/nemustech/tiffany/world/TFEffect$TwistParam;
    invoke-virtual {v0, v7}, Lcom/nemustech/tiffany/world/TFEffect$TwistParam;->setParam(Lcom/nemustech/tiffany/world/TFTwistEffect;)V

    .line 1860
    invoke-virtual {v6}, Lcom/nemustech/tiffany/world/TFCustomPanel;->lock()V

    .line 1861
    invoke-virtual {v6, v7}, Lcom/nemustech/tiffany/world/TFCustomPanel;->startBlender(Lcom/nemustech/tiffany/world/TFCustomPanel$Blender;)V

    .line 1862
    new-instance v1, Lcom/nemustech/regina/widgets/clock/ClockWidget$28;

    invoke-direct {v1, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$28;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    invoke-virtual {v6, v1}, Lcom/nemustech/tiffany/world/TFCustomPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    goto :goto_0
.end method

.method private shrink()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x0

    .line 1793
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastDisplayState:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 1794
    iput-boolean v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mShowForecast:Z

    .line 1795
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v2, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1797
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const/high16 v1, 0x3f80

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setOpacity(F)V

    .line 1798
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->setVisibility(Z)V

    .line 1799
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    const/4 v1, 0x0

    const-wide/16 v2, 0x1f4

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->fade(FJ)V

    .line 1800
    const/4 v0, 0x4

    iput v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelEffectType:I

    .line 1802
    :cond_0
    return-void
.end method

.method private shrinkInBack()V
    .locals 4

    .prologue
    .line 1805
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackItemDisplayState:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 1806
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->lock()V

    .line 1807
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    const-wide/16 v2, 0xc8

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 1808
    const/16 v0, 0x9

    iput v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddlePanelEffectType:I

    .line 1810
    :cond_0
    return-void
.end method

.method private startClockApp()V
    .locals 4

    .prologue
    .line 631
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v2, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaPreference;->getClockWidgetApp()Landroid/content/ComponentName;

    move-result-object v0

    .line 632
    .local v0, componentName:Landroid/content/ComponentName;
    invoke-direct {p0, v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getIntent(Landroid/content/ComponentName;)Landroid/content/Intent;

    move-result-object v1

    .line 634
    .local v1, intent:Landroid/content/Intent;
    if-eqz v1, :cond_0

    .line 635
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v2, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 646
    :goto_0
    return-void

    .line 637
    :cond_0
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v2, Landroid/app/Activity;

    new-instance v3, Lcom/nemustech/regina/widgets/clock/ClockWidget$7;

    invoke-direct {v3, p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget$7;-><init>(Lcom/nemustech/regina/widgets/clock/ClockWidget;)V

    invoke-virtual {v2, v3}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 644
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mActorShowAppSelDialog:Ljava/lang/Runnable;

    invoke-interface {v2}, Ljava/lang/Runnable;->run()V

    goto :goto_0
.end method

.method private startWeatherApp()V
    .locals 12

    .prologue
    const/4 v11, 0x1

    const/4 v10, 0x0

    .line 1911
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v7, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v7}, Lcom/nemustech/regina/ReginaLauncher;->startWeatherService()Z

    .line 1913
    new-instance v1, Landroid/content/ComponentName;

    const-string v7, "com.nemustech.regina.apps.weather"

    const-string v8, "com.nemustech.regina.apps.weather.WeatherApp"

    invoke-direct {v1, v7, v8}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 1917
    .local v1, compName:Landroid/content/ComponentName;
    new-instance v2, Landroid/content/Intent;

    const-string v7, "android.intent.action.MAIN"

    invoke-direct {v2, v7}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1918
    .local v2, intent:Landroid/content/Intent;
    const/high16 v7, 0x1020

    invoke-virtual {v2, v7}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1920
    invoke-virtual {v2, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 1922
    const-string v7, "widgetId"

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v8

    invoke-virtual {v2, v7, v8, v9}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;

    .line 1924
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    if-eqz v7, :cond_0

    .line 1925
    const-string v7, "cityName"

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    invoke-virtual {v2, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1928
    :cond_0
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    if-eqz v7, :cond_1

    .line 1929
    const-string v7, "cityCode"

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    invoke-virtual {v2, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1932
    :cond_1
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    if-eqz v7, :cond_2

    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v7

    if-le v7, v11, :cond_2

    .line 1933
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    invoke-virtual {v7, v10, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    .line 1934
    .local v5, sign:Ljava/lang/String;
    const-string v7, "+"

    invoke-virtual {v5, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_2

    const-string v7, "-"

    invoke-virtual {v5, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_4

    .line 1941
    .end local v5           #sign:Ljava/lang/String;
    :cond_2
    :goto_0
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v7}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v7

    new-instance v8, Landroid/content/Intent;

    invoke-direct {v8}, Landroid/content/Intent;-><init>()V

    invoke-virtual {v8, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    move-result-object v8

    invoke-virtual {v7, v8, v10}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;

    move-result-object v0

    .line 1942
    .local v0, apps:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v7

    if-lez v7, :cond_5

    .line 1943
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {p0, v7, v8}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCurrentVersion(Landroid/content/Context;Ljava/lang/String;)I

    move-result v6

    .line 1944
    .local v6, weatherAppVersion:I
    const/16 v7, 0x2bc

    if-ge v6, v7, :cond_3

    .line 1945
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v7}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v7

    const v8, 0x7f07002a

    invoke-virtual {v7, v8}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 1946
    .local v4, requestUpdateText:Ljava/lang/String;
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v7, v4}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    .line 1949
    .end local v4           #requestUpdateText:Ljava/lang/String;
    :cond_3
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0, v2}, Lcom/nemustech/regina/ReginaLauncher;->startActivity(Landroid/content/Intent;)V

    .line 1954
    .end local v6           #weatherAppVersion:I
    :goto_1
    return-void

    .line 1937
    .end local v0           #apps:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    .restart local v5       #sign:Ljava/lang/String;
    .restart local p0
    :cond_4
    const-string v7, "gmtValue"

    iget-object v8, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    invoke-virtual {v2, v7, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    goto :goto_0

    .line 1951
    .end local v5           #sign:Ljava/lang/String;
    .restart local v0       #apps:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
    :cond_5
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mResources:Landroid/content/res/Resources;

    const v8, 0x7f070008

    invoke-virtual {v7, v8}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 1952
    .local v3, message:Ljava/lang/String;
    iget-object v7, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v7, v3}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    goto :goto_1
.end method

.method private unRegisterReceiver()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 2491
    iget-boolean v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsReceiverRegisterd:Z

    if-eqz v1, :cond_0

    .line 2493
    :try_start_0
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIntentReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v2}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    .line 2497
    iput-boolean v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsReceiverRegisterd:Z

    .line 2500
    :cond_0
    :goto_0
    return-void

    .line 2494
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 2495
    .local v0, e:Ljava/lang/IllegalArgumentException;
    :try_start_1
    invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 2497
    iput-boolean v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsReceiverRegisterd:Z

    goto :goto_0

    .end local v0           #e:Ljava/lang/IllegalArgumentException;
    :catchall_0
    move-exception v1

    iput-boolean v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsReceiverRegisterd:Z

    throw v1
.end method

.method private updateClock()V
    .locals 4

    .prologue
    const/16 v2, 0xc

    const/16 v3, 0x3e8

    .line 2274
    iget-boolean v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTwentyFourHourMode:Z

    if-eqz v1, :cond_0

    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    move v0, v1

    .line 2275
    .local v0, displayHour:I
    :goto_0
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    div-int/lit8 v2, v0, 0xa

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setHeadItemIndex(II)V

    .line 2276
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHourOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    rem-int/lit8 v2, v0, 0xa

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setHeadItemIndex(II)V

    .line 2277
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteTens:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinute:I

    div-int/lit8 v2, v2, 0xa

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setHeadItemIndex(II)V

    .line 2278
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinuteOnes:Lcom/nemustech/regina/widgets/clock/DigitHolder;

    iget v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinute:I

    rem-int/lit8 v2, v2, 0xa

    invoke-virtual {v1, v2, v3}, Lcom/nemustech/regina/widgets/clock/DigitHolder;->setHeadItemIndex(II)V

    .line 2279
    return-void

    .line 2274
    .end local v0           #displayHour:I
    :cond_0
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    if-le v1, v2, :cond_1

    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    rem-int/lit8 v1, v1, 0xc

    move v0, v1

    goto :goto_0

    :cond_1
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    if-nez v1, :cond_2

    move v0, v2

    goto :goto_0

    :cond_2
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    move v0, v1

    goto :goto_0
.end method

.method private updateForecast()V
    .locals 13

    .prologue
    const/4 v12, 0x0

    const/4 v11, 0x5

    const/4 v10, 0x0

    .line 1500
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    if-eqz v0, :cond_2

    .line 1501
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCalendarTimeZoneApplied()Ljava/util/Calendar;

    move-result-object v7

    .line 1502
    .local v7, c:Ljava/util/Calendar;
    const/4 v9, 0x0

    .local v9, i:I
    :goto_0
    const/4 v0, 0x4

    if-ge v9, v0, :cond_1

    .line 1503
    const/4 v0, 0x1

    invoke-virtual {v7, v11, v0}, Ljava/util/Calendar;->add(II)V

    .line 1505
    const/4 v0, 0x2

    invoke-virtual {v7, v0}, Ljava/util/Calendar;->get(I)I

    move-result v0

    add-int/lit8 v1, v0, 0x1

    invoke-virtual {v7, v11}, Ljava/util/Calendar;->get(I)I

    move-result v2

    const-string v0, "E"

    invoke-static {v0, v7}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Calendar;)Ljava/lang/CharSequence;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    add-int/lit8 v4, v9, 0x1

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getForeCast(I)Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;->getWeather()I

    move-result v4

    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    add-int/lit8 v5, v9, 0x1

    invoke-virtual {v0, v5}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getForeCast(I)Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;->getTempHigh()I

    move-result v5

    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    add-int/lit8 v6, v9, 0x1

    invoke-virtual {v0, v6}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getForeCast(I)Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/widgets/clock/WeatherData$ForeCast;->getTempLow()I

    move-result v6

    move-object v0, p0

    invoke-direct/range {v0 .. v6}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->createForecastBitmap(IILjava/lang/String;III)Landroid/graphics/Bitmap;

    move-result-object v8

    .line 1514
    .local v8, forecastBitmap:Landroid/graphics/Bitmap;
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mForecastHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v0, v9}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->getModelInSlot(I)Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v0

    invoke-virtual {v0, v10, v8}, Lcom/nemustech/tiffany/world/TFModel;->setImageResource(ILandroid/graphics/Bitmap;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1515
    invoke-virtual {v8}, Landroid/graphics/Bitmap;->recycle()V

    .line 1502
    :cond_0
    add-int/lit8 v9, v9, 0x1

    goto :goto_0

    .line 1518
    .end local v8           #forecastBitmap:Landroid/graphics/Bitmap;
    :cond_1
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v10, v12, v12}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1520
    .end local v7           #c:Ljava/util/Calendar;
    .end local v9           #i:I
    :cond_2
    return-void
.end method

.method private updateHeight2D()V
    .locals 4

    .prologue
    .line 1194
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v2}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v2

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMiddleBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v3

    add-float/2addr v2, v3

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBottomBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFPanel;->getHeight()F

    move-result v3

    add-float/2addr v2, v3

    invoke-static {v1, v2}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v0

    .line 1196
    .local v0, newWidgetHeight:I
    invoke-virtual {p0, v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->setHeight2D(I)V

    .line 1197
    return-void
.end method

.method private updateTextPanel()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 2360
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/nemustech/regina/ResourceCare;->getResourceCare(Landroid/content/Context;)Lcom/nemustech/regina/ResourceCare;

    move-result-object v1

    const v2, 0x7f070026

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ResourceCare;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 2361
    .local v0, initialText:Ljava/lang/String;
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    if-eqz v1, :cond_0

    move-object v1, v3

    :goto_0
    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTextString:Ljava/lang/String;

    .line 2362
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mFrontItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v2, 0x0

    invoke-virtual {v1, v2, v3, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 2363
    return-void

    :cond_0
    move-object v1, v0

    .line 2361
    goto :goto_0
.end method

.method private updateWeather(Ljava/lang/String;)V
    .locals 6
    .parameter "cityCode"

    .prologue
    const/4 v5, 0x0

    .line 2399
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->TAG:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "in ClockWidget - updateWeather() called!! CityCode = "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v5}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2401
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v2, p1}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->getWeatherData(Landroid/content/Context;Ljava/lang/String;)Lcom/nemustech/regina/widgets/clock/WeatherData;

    move-result-object v1

    .line 2402
    .local v1, weatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;
    if-eqz v1, :cond_1

    .line 2403
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    if-nez v2, :cond_0

    .line 2404
    invoke-virtual {v1}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getLocation()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    .line 2405
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityName:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    if-eqz v2, :cond_0

    .line 2406
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mGmt:Ljava/lang/String;

    invoke-direct {p0, v2, v3, v4}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->saveCityDatas(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 2410
    :cond_0
    iput-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherData:Lcom/nemustech/regina/widgets/clock/WeatherData;

    .line 2411
    invoke-virtual {v1}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getLastUpdateTime()Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mLastUpdateTime:J

    .line 2412
    invoke-virtual {v1}, Lcom/nemustech/regina/widgets/clock/WeatherData;->getCurrentCondition()Lcom/nemustech/regina/widgets/clock/WeatherData$CurrentCondition;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/widgets/clock/WeatherData$CurrentCondition;->getWeather()I

    move-result v0

    .line 2413
    .local v0, newWeather:I
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateTextPanel()V

    .line 2414
    invoke-direct {p0, v0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateWeatherPanel(I)V

    .line 2415
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateForecast()V

    .line 2419
    .end local v0           #newWeather:I
    :goto_0
    return-void

    .line 2417
    :cond_1
    iget-object v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->TAG:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "in ClockWidget - updateWeather() called!! CityCode = "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "weather data is null"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v5}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto :goto_0
.end method

.method private updateWeatherPanel(I)V
    .locals 8
    .parameter "newWeather"

    .prologue
    const-wide/16 v6, 0x3e8

    const/4 v5, 0x1

    const/4 v4, 0x0

    const/4 v3, 0x0

    const/4 v2, 0x0

    .line 2366
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mNextWeather:I

    .line 2367
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCurrentWeather:I

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    .line 2368
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mNextWeather:I

    iput v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCurrentWeather:I

    .line 2369
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v3, v2, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 2370
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFPanel;->setOpacity(F)V

    .line 2371
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 2372
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/high16 v1, 0x3f80

    invoke-virtual {v0, v1, v6, v7}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 2373
    const/4 v0, 0x5

    iput v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherEffectType:I

    .line 2381
    :goto_0
    return-void

    .line 2375
    :cond_0
    iput-boolean v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mIsShowWeather:Z

    .line 2376
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTopBackgroundPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v3, v2, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 2377
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v5}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 2378
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherPanel:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-virtual {v0, v4, v6, v7}, Lcom/nemustech/tiffany/world/TFPanel;->fade(FJ)V

    .line 2379
    const/4 v0, 0x6

    iput v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWeatherEffectType:I

    goto :goto_0
.end method


# virtual methods
.method public convertPixelByDensity(I)I
    .locals 1
    .parameter "pixel"

    .prologue
    .line 2771
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v0, p1}, Lcom/nemustech/regina/RUtils;->convertPixelByDensity(Landroid/content/Context;I)I

    move-result v0

    return v0
.end method

.method public digitHolderBanChiselFringe(Z)V
    .locals 1
    .parameter "value"

    .prologue
    .line 2503
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDigitsHolder:Lcom/nemustech/tiffany/world/TFPlaceHolder;

    invoke-virtual {v0, p1}, Lcom/nemustech/tiffany/world/TFPlaceHolder;->banChiselFringe(Z)V

    .line 2504
    return-void
.end method

.method public getCurrentDate()V
    .locals 8

    .prologue
    const/4 v7, 0x1

    const/4 v6, 0x2

    .line 2283
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCalendarTimeZoneApplied()Ljava/util/Calendar;

    move-result-object v0

    .line 2284
    .local v0, c:Ljava/util/Calendar;
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDate:Ljava/util/Date;

    invoke-virtual {v0, v7}, Ljava/util/Calendar;->get(I)I

    move-result v4

    const/16 v5, 0x76c

    sub-int/2addr v4, v5

    invoke-virtual {v3, v4}, Ljava/util/Date;->setYear(I)V

    .line 2285
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDate:Ljava/util/Date;

    invoke-virtual {v0, v6}, Ljava/util/Calendar;->get(I)I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/util/Date;->setMonth(I)V

    .line 2286
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDate:Ljava/util/Date;

    const/4 v4, 0x5

    invoke-virtual {v0, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/util/Date;->setDate(I)V

    .line 2288
    const-string v3, "E"

    invoke-static {v3, v0}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Calendar;)Ljava/lang/CharSequence;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 2289
    .local v2, day:Ljava/lang/String;
    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDate:Ljava/util/Date;

    invoke-static {v3, v6}, Lcom/nemustech/regina/RUtils;->formatDate(Ljava/util/Date;I)Ljava/lang/String;

    move-result-object v1

    .line 2290
    .local v1, dateString:Ljava/lang/String;
    const-string v3, "%s, %s"

    new-array v4, v6, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v2, v4, v5

    aput-object v1, v4, v7

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDateStr:Ljava/lang/String;

    .line 2292
    return-void
.end method

.method public getCurrentTime()V
    .locals 4

    .prologue
    const/16 v3, 0x9

    .line 2264
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCalendarTimeZoneApplied()Ljava/util/Calendar;

    move-result-object v0

    .line 2265
    .local v0, c:Ljava/util/Calendar;
    const/16 v1, 0xb

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHour:I

    .line 2266
    const/16 v1, 0xc

    invoke-virtual {v0, v1}, Ljava/util/Calendar;->get(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mMinute:I

    .line 2267
    iget v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mAmPm:I

    invoke-virtual {v0, v3}, Ljava/util/Calendar;->get(I)I

    move-result v2

    if-eq v1, v2, :cond_0

    .line 2268
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mAmPmChanged:Z

    .line 2269
    invoke-virtual {v0, v3}, Ljava/util/Calendar;->get(I)I

    move-result v1

    iput v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mAmPm:I

    .line 2271
    :cond_0
    return-void
.end method

.method public getCurrentVersion(Landroid/content/Context;Ljava/lang/String;)I
    .locals 3
    .parameter "context"
    .parameter "packageName"

    .prologue
    .line 1959
    :try_start_0
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, p2, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    iget v1, v1, Landroid/content/pm/PackageInfo;->versionCode:I
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1963
    :goto_0
    return v1

    .line 1960
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1962
    .local v0, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    .line 1963
    const/4 v1, -0x1

    goto :goto_0
.end method

.method public getHourMode()Z
    .locals 1

    .prologue
    .line 2480
    iget-boolean v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTwentyFourHourMode:Z

    return v0
.end method

.method public getSnapShot()Landroid/graphics/Bitmap;
    .locals 2

    .prologue
    .line 2657
    const-class v0, Ljava/lang/Object;

    monitor-enter v0

    .line 2658
    :try_start_0
    invoke-super {p0}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShot()Landroid/graphics/Bitmap;

    move-result-object v1

    monitor-exit v0

    return-object v1

    .line 2659
    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public getSnapShot(I)Landroid/graphics/Bitmap;
    .locals 2
    .parameter "faceIndex"

    .prologue
    .line 2665
    const-class v0, Ljava/lang/Object;

    monitor-enter v0

    .line 2666
    :try_start_0
    invoke-super {p0, p1}, Lcom/nemustech/regina/ElementReginaWidget;->getSnapShot(I)Landroid/graphics/Bitmap;

    move-result-object v1

    monitor-exit v0

    return-object v1

    .line 2667
    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method protected getSnapShot(ILcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V
    .locals 26
    .parameter "faceIndex"
    .parameter "holder"
    .parameter "canvas"
    .parameter "matrixStack"

    .prologue
    .line 2671
    const-class v22, Ljava/lang/Object;

    monitor-enter v22

    .line 2672
    :try_start_0
    invoke-virtual/range {p2 .. p2}, Lcom/nemustech/tiffany/world/TFHolder;->getSlotCount()I

    move-result v10

    .line 2673
    .local v10, itemCount:I
    const/4 v9, 0x0

    .local v9, i:I
    :goto_0
    if-ge v9, v10, :cond_a

    .line 2674
    move-object/from16 v0, p2

    move v1, v9

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v17

    .line 2676
    .local v17, o:Lcom/nemustech/tiffany/world/TFObject;
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/tiffany/world/TFObject;->isVisible()Z

    move-result v23

    if-eqz v23, :cond_2

    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/tiffany/world/TFObject;->getOpacity()F

    move-result v23

    const/16 v24, 0x0

    cmpl-float v23, v23, v24

    if-eqz v23, :cond_2

    .line 2677
    invoke-virtual/range {p4 .. p4}, Lcom/nemustech/tiffany/world/MatrixStack;->glPushMatrix()V

    .line 2678
    if-nez p1, :cond_3

    const/16 v23, 0x1

    :goto_1
    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    const/16 v24, 0x0

    move-object/from16 v0, v17

    move/from16 v1, v24

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v24

    mul-float v23, v23, v24

    const/16 v24, 0x1

    move-object/from16 v0, v17

    move/from16 v1, v24

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v24

    const/16 v25, 0x2

    move-object/from16 v0, v17

    move/from16 v1, v25

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFObject;->getLocation(I)F

    move-result v25

    move-object/from16 v0, p4

    move/from16 v1, v23

    move/from16 v2, v24

    move/from16 v3, v25

    invoke-virtual {v0, v1, v2, v3}, Lcom/nemustech/tiffany/world/MatrixStack;->glTranslatef(FFF)V

    .line 2679
    move-object/from16 v0, v17

    instance-of v0, v0, Lcom/nemustech/tiffany/world/TFHolder;

    move/from16 v23, v0

    if-eqz v23, :cond_5

    move-object/from16 v0, v17

    instance-of v0, v0, Lcom/nemustech/regina/widgets/clock/DigitHolder;

    move/from16 v23, v0

    if-nez v23, :cond_5

    .line 2680
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/tiffany/world/TFObject;->isVisible()Z

    move-result v23

    const/16 v24, 0x1

    move/from16 v0, v23

    move/from16 v1, v24

    if-ne v0, v1, :cond_1

    .line 2681
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackMainHolder:Lcom/nemustech/regina/ElementReginaWidget$WidgetPlaceHolder;

    move-object/from16 v23, v0

    move-object/from16 v0, v17

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v23

    if-eqz v23, :cond_0

    .line 2682
    if-nez p1, :cond_4

    const/16 v23, 0x1

    move/from16 p1, v23

    .line 2684
    :cond_0
    :goto_2
    check-cast v17, Lcom/nemustech/tiffany/world/TFHolder;

    .end local v17           #o:Lcom/nemustech/tiffany/world/TFObject;
    move-object/from16 v0, p0

    move/from16 v1, p1

    move-object/from16 v2, v17

    move-object/from16 v3, p3

    move-object/from16 v4, p4

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getSnapShot(ILcom/nemustech/tiffany/world/TFHolder;Landroid/graphics/Canvas;Lcom/nemustech/tiffany/world/MatrixStack;)V

    .line 2721
    :cond_1
    :goto_3
    invoke-virtual/range {p4 .. p4}, Lcom/nemustech/tiffany/world/MatrixStack;->glPopMatrix()V

    .line 2673
    :cond_2
    add-int/lit8 v9, v9, 0x1

    goto/16 :goto_0

    .line 2678
    .restart local v17       #o:Lcom/nemustech/tiffany/world/TFObject;
    :cond_3
    const/16 v23, -0x1

    goto :goto_1

    .line 2682
    :cond_4
    const/16 v23, 0x0

    move/from16 p1, v23

    goto :goto_2

    .line 2687
    :cond_5
    move-object/from16 v0, v17

    instance-of v0, v0, Lcom/nemustech/regina/widgets/clock/DigitHolder;

    move/from16 v23, v0

    if-eqz v23, :cond_7

    check-cast v17, Lcom/nemustech/tiffany/world/TFHolder;

    .end local v17           #o:Lcom/nemustech/tiffany/world/TFObject;
    invoke-virtual/range {v17 .. v17}, Lcom/nemustech/tiffany/world/TFHolder;->getHeadModel()Lcom/nemustech/tiffany/world/TFModel;

    move-result-object v23

    move-object/from16 v12, v23

    .line 2690
    .local v12, m:Lcom/nemustech/tiffany/world/TFModel;
    :goto_4
    const/16 v18, 0x0

    .line 2691
    .local v18, snapshotFace:I
    if-gez p1, :cond_9

    .line 2692
    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFModel;->getTouchedFace()I

    move-result v23

    if-ltz v23, :cond_8

    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFModel;->getTouchedFace()I

    move-result v23

    move/from16 v18, v23

    .line 2697
    :goto_5
    const/16 v23, 0x10

    move/from16 v0, v23

    new-array v0, v0, [F

    move-object v13, v0

    .line 2698
    .local v13, matrix:[F
    const/16 v23, 0x3

    move/from16 v0, v23

    new-array v0, v0, [F

    move-object v11, v0

    .line 2699
    .local v11, location:[F
    const/16 v23, 0x0

    move-object/from16 v0, p4

    move-object v1, v13

    move/from16 v2, v23

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/MatrixStack;->getMatrix([FI)V

    .line 2700
    const/16 v23, 0xc

    const/16 v24, 0x0

    const/16 v25, 0x3

    move-object v0, v13

    move/from16 v1, v23

    move-object v2, v11

    move/from16 v3, v24

    move/from16 v4, v25

    invoke-static {v0, v1, v2, v3, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 2702
    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFModel;->getWidth()F

    move-result v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v24, v0

    invoke-static/range {v24 .. v24}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v24

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v24, v0

    mul-float v23, v23, v24

    move/from16 v0, v23

    float-to-int v0, v0

    move/from16 v16, v0

    .line 2703
    .local v16, modelWidthPixel:I
    invoke-virtual {v12}, Lcom/nemustech/tiffany/world/TFModel;->getHeight()F

    move-result v23

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v24, v0

    invoke-static/range {v24 .. v24}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v24

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v24, v0

    mul-float v23, v23, v24

    move/from16 v0, v23

    float-to-int v0, v0

    move v15, v0

    .line 2705
    .local v15, modelHeightPixel:I
    move-object v0, v12

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Lcom/nemustech/tiffany/world/TFModel;->getFaceImage(I)Landroid/graphics/Bitmap;

    move-result-object v8

    .line 2706
    .local v8, faceBitmap:Landroid/graphics/Bitmap;
    const/4 v14, 0x0

    .line 2707
    .local v14, modelBitmap:Landroid/graphics/Bitmap;
    if-eqz v8, :cond_6

    .line 2708
    invoke-static {v8}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v14

    .line 2711
    :cond_6
    if-eqz v14, :cond_1

    .line 2712
    invoke-virtual {v14}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v6

    .line 2713
    .local v6, bitmapWidth:I
    invoke-virtual {v14}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v5

    .line 2714
    .local v5, bitmapHeight:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v23, v0

    invoke-static/range {v23 .. v23}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v23

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    const/16 v24, 0x0

    aget v24, v11, v24

    mul-float v23, v23, v24

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mWidth:I

    move/from16 v24, v0

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v24, v0

    const/high16 v25, 0x4000

    div-float v24, v24, v25

    add-float v23, v23, v24

    move/from16 v0, v16

    int-to-float v0, v0

    move/from16 v24, v0

    const/high16 v25, 0x4000

    div-float v24, v24, v25

    sub-float v23, v23, v24

    move/from16 v0, v23

    float-to-int v0, v0

    move/from16 v20, v0

    .line 2715
    .local v20, x2d:I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    move-object/from16 v23, v0

    invoke-static/range {v23 .. v23}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v23

    move/from16 v0, v23

    neg-int v0, v0

    move/from16 v23, v0

    move/from16 v0, v23

    int-to-float v0, v0

    move/from16 v23, v0

    const/16 v24, 0x1

    aget v24, v11, v24

    mul-float v23, v23, v24

    move-object/from16 v0, p0

    iget v0, v0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHeight:I

    move/from16 v24, v0

    move/from16 v0, v24

    int-to-float v0, v0

    move/from16 v24, v0

    const/high16 v25, 0x4000

    div-float v24, v24, v25

    add-float v23, v23, v24

    move v0, v15

    int-to-float v0, v0

    move/from16 v24, v0

    const/high16 v25, 0x4000

    div-float v24, v24, v25

    sub-float v23, v23, v24

    move/from16 v0, v23

    float-to-int v0, v0

    move/from16 v21, v0

    .line 2716
    .local v21, y2d:I
    new-instance v19, Landroid/graphics/Rect;

    const/16 v23, 0x0

    const/16 v24, 0x0

    move-object/from16 v0, v19

    move/from16 v1, v23

    move/from16 v2, v24

    move v3, v6

    move v4, v5

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 2717
    .local v19, src:Landroid/graphics/Rect;
    new-instance v7, Landroid/graphics/Rect;

    add-int v23, v20, v16

    add-int v24, v21, v15

    move-object v0, v7

    move/from16 v1, v20

    move/from16 v2, v21

    move/from16 v3, v23

    move/from16 v4, v24

    invoke-direct {v0, v1, v2, v3, v4}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 2718
    .local v7, dest:Landroid/graphics/Rect;
    const/16 v23, 0x0

    move-object/from16 v0, p3

    move-object v1, v14

    move-object/from16 v2, v19

    move-object v3, v7

    move-object/from16 v4, v23

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V

    goto/16 :goto_3

    .line 2724
    .end local v5           #bitmapHeight:I
    .end local v6           #bitmapWidth:I
    .end local v7           #dest:Landroid/graphics/Rect;
    .end local v8           #faceBitmap:Landroid/graphics/Bitmap;
    .end local v9           #i:I
    .end local v10           #itemCount:I
    .end local v11           #location:[F
    .end local v12           #m:Lcom/nemustech/tiffany/world/TFModel;
    .end local v13           #matrix:[F
    .end local v14           #modelBitmap:Landroid/graphics/Bitmap;
    .end local v15           #modelHeightPixel:I
    .end local v16           #modelWidthPixel:I
    .end local v18           #snapshotFace:I
    .end local v19           #src:Landroid/graphics/Rect;
    .end local v20           #x2d:I
    .end local v21           #y2d:I
    :catchall_0
    move-exception v23

    monitor-exit v22
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v23

    .line 2687
    .restart local v9       #i:I
    .restart local v10       #itemCount:I
    .restart local v17       #o:Lcom/nemustech/tiffany/world/TFObject;
    :cond_7
    :try_start_1
    check-cast v17, Lcom/nemustech/tiffany/world/TFModel;

    move-object/from16 v12, v17

    goto/16 :goto_4

    .line 2692
    .end local v17           #o:Lcom/nemustech/tiffany/world/TFObject;
    .restart local v12       #m:Lcom/nemustech/tiffany/world/TFModel;
    .restart local v18       #snapshotFace:I
    :cond_8
    const/16 v23, 0x0

    move/from16 v18, v23

    goto/16 :goto_5

    .line 2694
    :cond_9
    move/from16 v18, p1

    goto/16 :goto_5

    .line 2724
    .end local v12           #m:Lcom/nemustech/tiffany/world/TFModel;
    .end local v18           #snapshotFace:I
    :cond_a
    monitor-exit v22
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 2725
    return-void
.end method

.method public getTempUnit()I
    .locals 1

    .prologue
    .line 1283
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    return v0
.end method

.method protected hasBack()Z
    .locals 1

    .prologue
    .line 2767
    const/4 v0, 0x1

    return v0
.end method

.method public isDateChanged()Z
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 2295
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDate:Ljava/util/Date;

    invoke-virtual {v1}, Ljava/util/Date;->getDate()I

    move-result v0

    .line 2296
    .local v0, oldDate:I
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getCurrentDate()V

    .line 2297
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->TAG:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "oldDate = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", newDate = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDate:Ljava/util/Date;

    invoke-virtual {v3}, Ljava/util/Date;->getDate()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2298
    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mDate:Ljava/util/Date;

    invoke-virtual {v1}, Ljava/util/Date;->getDate()I

    move-result v1

    if-eq v0, v1, :cond_0

    const/4 v1, 0x1

    :goto_0
    return v1

    :cond_0
    move v1, v4

    goto :goto_0
.end method

.method protected onCreate()V
    .locals 0

    .prologue
    .line 2744
    return-void
.end method

.method protected onDestroy()V
    .locals 3

    .prologue
    .line 2731
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 2732
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->sendRequestRemove(Landroid/content/Context;Ljava/lang/String;)V

    .line 2734
    :cond_0
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->removeCityData()V

    .line 2735
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->removeCityDatas()V

    .line 2736
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->removeTempUnit()V

    .line 2737
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->removeHourMode()V

    .line 2738
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->decreaseClockWidgetCount()V

    .line 2739
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->unRegisterReceiver()V

    .line 2740
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->TAG:Ljava/lang/String;

    const-string v1, "clockWidget is destroyed"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2741
    return-void
.end method

.method protected onDrawBackItem(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V
    .locals 0
    .parameter "bitmap"
    .parameter "area"
    .parameter "index"

    .prologue
    .line 2756
    return-void
.end method

.method protected onDrawBackTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V
    .locals 0
    .parameter "bitmap"
    .parameter "area"

    .prologue
    .line 2750
    return-void
.end method

.method protected onDrawFrontItem(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V
    .locals 0
    .parameter "bitmap"
    .parameter "area"
    .parameter "index"

    .prologue
    .line 2759
    return-void
.end method

.method protected onDrawFrontTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V
    .locals 0
    .parameter "bitmap"
    .parameter "area"

    .prologue
    .line 2753
    return-void
.end method

.method protected onDrawRow(Landroid/graphics/Bitmap;Landroid/graphics/Rect;I)V
    .locals 0
    .parameter "bitmap"
    .parameter "area"
    .parameter "index"

    .prologue
    .line 2747
    return-void
.end method

.method protected onDrawTitle(Landroid/graphics/Bitmap;Landroid/graphics/Rect;)V
    .locals 0
    .parameter "bitmap"
    .parameter "area"

    .prologue
    .line 2746
    return-void
.end method

.method protected onPause()V
    .locals 3

    .prologue
    .line 2236
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->TAG:Ljava/lang/String;

    const-string v1, "in clock - onPause"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2238
    return-void
.end method

.method protected onResume()V
    .locals 8

    .prologue
    .line 2218
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->TAG:Ljava/lang/String;

    const-string v5, "in clock - onResume"

    const/4 v6, 0x0

    invoke-static {v4, v5, v6}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 2220
    new-instance v4, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    invoke-direct {v4, v5, v6}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v4}, Ljava/util/Date;->getTime()J

    move-result-wide v0

    .line 2221
    .local v0, currentTime:J
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v4, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getWeatherUpdatePeriod()J

    move-result-wide v4

    const-wide/32 v6, 0x927c0

    add-long v2, v4, v6

    .line 2222
    .local v2, updatePeriod:J
    iget-wide v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mLastUpdateTime:J

    const-wide/16 v6, -0x1

    cmp-long v4, v4, v6

    if-eqz v4, :cond_0

    iget-wide v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mLastUpdateTime:J

    add-long/2addr v4, v2

    cmp-long v4, v4, v0

    if-gez v4, :cond_0

    .line 2223
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    if-eqz v4, :cond_0

    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->isConnected()Z

    move-result v4

    if-eqz v4, :cond_0

    .line 2224
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mCityCode:Ljava/lang/String;

    invoke-static {v4, v5}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->sendRequest(Landroid/content/Context;Ljava/lang/String;)V

    .line 2230
    :cond_0
    iget-object v4, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v4, Landroid/app/Activity;

    iget-object v5, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->Timer_Tick:Ljava/lang/Runnable;

    invoke-virtual {v4, v5}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 2232
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z
    .locals 5
    .parameter "e"
    .parameter "object"

    .prologue
    const/4 v4, 0x1

    .line 2244
    invoke-super {p0, p1, p2}, Lcom/nemustech/regina/ElementReginaWidget;->onTouchEvent(Landroid/view/MotionEvent;Lcom/nemustech/tiffany/world/TFObject;)Z

    .line 2245
    instance-of v0, p2, Lcom/nemustech/regina/widgets/clock/DigitHolder;

    if-eqz v0, :cond_1

    .line 2246
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-ne v0, v4, :cond_0

    .line 2247
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->Timer_Tick:Ljava/lang/Runnable;

    const-wide/16 v2, 0x5dc

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_0
    move v0, v4

    .line 2251
    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onUpdate()Z
    .locals 1

    .prologue
    .line 2745
    const/4 v0, 0x0

    return v0
.end method

.method protected onUpdateTitle()Z
    .locals 1

    .prologue
    .line 2763
    const/4 v0, 0x0

    return v0
.end method

.method public refreshBackItemPanel()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 1311
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    if-eqz v0, :cond_0

    .line 1312
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mBackCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, v2, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;Landroid/graphics/Rect;)Z

    .line 1314
    :cond_0
    return-void
.end method

.method public removeHourMode()V
    .locals 3

    .prologue
    .line 2464
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaPreference;->removeClockWidgetHourMode(Ljava/lang/String;)V

    .line 2465
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2466
    return-void
.end method

.method public removeTempUnit()V
    .locals 3

    .prologue
    .line 2454
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/ReginaPreference;->removeClockWidgetTempUnit(Ljava/lang/String;)V

    .line 2455
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2456
    return-void
.end method

.method public saveHourMode()V
    .locals 3

    .prologue
    .line 2459
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    iget-boolean v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTwentyFourHourMode:Z

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ReginaPreference;->setClockWidgetHourMode(Ljava/lang/String;Z)V

    .line 2460
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2461
    return-void
.end method

.method public saveTempUnit()V
    .locals 3

    .prologue
    .line 2447
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 2448
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    check-cast v0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->getElementId()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    iget v2, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/regina/ReginaPreference;->setClockWidgetTempUnit(Ljava/lang/String;I)V

    .line 2449
    iget-object p0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    .end local p0
    check-cast p0, Lcom/nemustech/regina/ReginaLauncher;

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 2451
    :cond_1
    return-void
.end method

.method public setHourMode(Z)V
    .locals 1
    .parameter "hourMode"

    .prologue
    .line 2469
    iget-boolean v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTwentyFourHourMode:Z

    if-eq p1, v0, :cond_0

    .line 2470
    iput-boolean p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTwentyFourHourMode:Z

    .line 2471
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->refreshBackItemPanel()V

    .line 2472
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->Timer_Tick:Ljava/lang/Runnable;

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    .line 2473
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateTextPanel()V

    .line 2474
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->saveHourMode()V

    .line 2477
    :cond_0
    return-void
.end method

.method public setTempUnit(I)V
    .locals 1
    .parameter "tempUnit"

    .prologue
    .line 1287
    if-eqz p1, :cond_0

    const/4 v0, 0x1

    if-ne p1, v0, :cond_1

    .line 1288
    :cond_0
    iget v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    if-eq p1, v0, :cond_1

    .line 1289
    iput p1, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mTempUnit:I

    .line 1290
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->refreshBackCenterItemPanel()V

    .line 1291
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateTextPanel()V

    .line 1292
    invoke-direct {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->updateForecast()V

    .line 1293
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->saveTempUnit()V

    .line 1296
    :cond_1
    return-void
.end method

.method public setUpdatePeriod(J)V
    .locals 1
    .parameter "period"

    .prologue
    .line 1299
    iget-object v0, p0, Lcom/nemustech/regina/widgets/clock/ClockWidget;->mContext:Landroid/content/Context;

    invoke-static {v0, p1, p2}, Lcom/nemustech/regina/widgets/clock/WeatherDBManager;->sendChangePeriod(Landroid/content/Context;J)V

    .line 1300
    invoke-virtual {p0}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->refreshBackCenterItemPanel()V

    .line 1301
    return-void
.end method
